From: Ryan McBride Date: Sun, 1 Feb 2009 10:05:25 +0000 (+0000) Subject: Silence format string warnings with debug enabled; X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=4cd489c8fd189c4a1ad0ce1e6a010744fdabe4d6;p=spectrwm.git Silence format string warnings with debug enabled; "Window" is not int (%d), it's unsigned long (%lu). --- diff --git a/scrotwm.c b/scrotwm.c index d7fa44e..e129b42 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1723,7 +1723,7 @@ resize(struct ws_win *win, union arg *args) 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)) @@ -1798,7 +1798,7 @@ move(struct ws_win *win, union arg *args) 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) {