summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-05-01 17:40:06 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-08-28 12:07:02 +0100
commit1f96a0d273e56d01cd240e6a4ef8765e0ffe058c (patch)
tree692c41104af5cc8d129b2ce818efede82ca8ee88
parent8cc88fbe9e4699cd2570641eb2752977b5505d16 (diff)
debug output format fix in ephyrProcessMouseMotion()
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 <jon.turney@dronecode.org.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--hw/kdrive/ephyr/ephyr.c4
1 files 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);
}