From 1f96a0d273e56d01cd240e6a4ef8765e0ffe058c Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 1 May 2015 17:40:06 +0100 Subject: [PATCH] debug output format fix in ephyrProcessMouseMotion() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xorg/xserver/hw/kdrive/ephyr/ephyr.c:979:9: error: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ScreenPtr’ [-Werror=format=] This looks like a genuine bug, and ephyrCursorScreen->myNum was meant here rather than ephyrCursorScreen v2: Insert a ":" as well Signed-off-by: Jon TURNEY Reviewed-by: Peter Hutterer --- hw/kdrive/ephyr/ephyr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index 164ebdcba..e6e72d354 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -977,8 +977,8 @@ ephyrProcessMouseMotion(xcb_generic_event_t *xev) if (ephyrCursorScreen != screen->pScreen) { EPHYR_LOG("warping mouse cursor. " - "cur_screen%d, motion_screen:%d\n", - ephyrCursorScreen, screen->pScreen->myNum); + "cur_screen:%d, motion_screen:%d\n", + ephyrCursorScreen->myNum, screen->pScreen->myNum); ephyrWarpCursor(inputInfo.pointer, screen->pScreen, motion->event_x, motion->event_y); }