From ca148c8f15be4f2d7a40cfbf156bcf82ac3cf13d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 3 Oct 2018 14:46:14 +0200 Subject: [PATCH] Fix printf format with DEBUG_EVENTS Xlib uses unsigned long for XIDs, but xcb always uses uint32_t. Thus, this needs the format string for uint32_t now. Signed-off-by: Uli Schlachter --- src/compton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 5698e56..f0fcb01 100644 --- a/src/compton.c +++ b/src/compton.c @@ -884,7 +884,7 @@ recheck_focus(session_t *ps) { #ifdef DEBUG_EVENTS print_timestamp(ps); - printf_dbgf("(): %#010lx (%#010lx \"%s\") focused.\n", wid, + printf_dbgf("(): %#010" PRIx32 " (%#010lx \"%s\") focused.\n", wid, (w ? w->id: None), (w ? w->name: NULL)); #endif