From 4cd489c8fd189c4a1ad0ce1e6a010744fdabe4d6 Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Sun, 1 Feb 2009 10:05:25 +0000 Subject: [PATCH] Silence format string warnings with debug enabled; "Window" is not int (%d), it's unsigned long (%lu). --- scrotwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4