From f07c6880f63f09f890586de8f651831e25cda91e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 16 Jan 2026 11:40:34 +0100 Subject: [PATCH] [c,printf] fix wlog format string to match arguments --- client/X11/xf_client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index d65a27d2e..6391540ae 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -304,7 +304,7 @@ void xf_draw_screen_(xfContext* xfc, int x, int y, int w, int h, const char* fkt { if (!xfc) { - WLog_DBG(TAG, "called from [%s] xfc=%p", fkt, xfc); + WLog_DBG(TAG, "called from [%s] xfc=%p", fkt, WINPR_CXX_COMPAT_CAST(const void*, xfc)); return; } @@ -316,7 +316,7 @@ void xf_draw_screen_(xfContext* xfc, int x, int y, int w, int h, const char* fkt if (!xfc->window) { - WLog_WARN(TAG, "invalid xfc->window=%p", xfc->window); + WLog_WARN(TAG, "invalid xfc->window=%p", WINPR_CXX_COMPAT_CAST(const void*, xfc->window)); return; } @@ -1045,7 +1045,8 @@ static void xf_get_x11_button_map(xfContext* xfc, unsigned char* x11_map) /* otherwise leave unchanged. */ if (ptr_dev) { - WLog_DBG(TAG, "Pointer device: %d", ptr_dev->device_id); + WLog_DBG(TAG, "Pointer device: %" PRIu32, + WINPR_CXX_COMPAT_CAST(uint32_t, ptr_dev->device_id)); XGetDeviceButtonMapping(xfc->display, ptr_dev, x11_map, NUM_BUTTONS_MAPPED); XCloseDevice(xfc->display, ptr_dev); }