JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Silence format string warnings with debug enabled;
authorRyan McBride <mcbride@countersiege.com>
Sun, 1 Feb 2009 10:05:25 +0000 (10:05 +0000)
committerRyan McBride <mcbride@countersiege.com>
Sun, 1 Feb 2009 10:05:25 +0000 (10:05 +0000)
"Window" is not int (%d), it's unsigned long (%lu).

scrotwm.c

index d7fa44e..e129b42 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -1723,7 +1723,7 @@ resize(struct ws_win *win, union arg *args)
        XEvent                  ev;
        Time                    time = 0;
 
        XEvent                  ev;
        Time                    time = 0;
 
-       DNPRINTF(SWM_D_MOUSE, "resize: win %d floating %d trans %d\n",
+       DNPRINTF(SWM_D_MOUSE, "resize: win %lu floating %d trans %d\n",
            win->id, win->floating, win->transient);
 
        if (!(win->transient != 0 || win->floating != 0))
            win->id, win->floating, win->transient);
 
        if (!(win->transient != 0 || win->floating != 0))
@@ -1798,7 +1798,7 @@ move(struct ws_win *win, union arg *args)
        Time                    time = 0;
        int                     restack = 0;
 
        Time                    time = 0;
        int                     restack = 0;
 
-       DNPRINTF(SWM_D_MOUSE, "move: win %d floating %d trans %d\n",
+       DNPRINTF(SWM_D_MOUSE, "move: win %lu floating %d trans %d\n",
            win->id, win->floating, win->transient);
 
        if (win->floating == 0) {
            win->id, win->floating, win->transient);
 
        if (win->floating == 0) {