[PATCH] change output of colors to hex instead of decimal

Eitan Adler lists at eitanadler.com
Thu Jan 27 11:18:07 PST 2011


---
 xset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xset.c b/xset.c
index e6f9474..f41dbb5 100644
--- a/xset.c
+++ b/xset.c
@@ -1454,7 +1454,7 @@ query(Display *dpy)
     printf("  timeout:  %d    cycle:  %d\n", timeout, interval);
 
     printf("Colors:\n");
-    printf("  default colormap:  0x%lx    BlackPixel:  %ld    WhitePixel:  %ld\n",
+    printf("  default colormap:  0x%lx    BlackPixel:  0x%lx    WhitePixel:  0x%lx\n",
 	   DefaultColormap(dpy, scr), BlackPixel(dpy, scr), WhitePixel(dpy,
 								       scr));
 
-- 
1.7.3.5



More information about the xorg-devel mailing list