From 8cc88fbe9e4699cd2570641eb2752977b5505d16 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 1 May 2015 17:33:35 +0100 Subject: debug output format fix in DRISwapContext() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xorg/xserver/hw/xfree86/dri/dri.c:1695:19: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘DRIContextPrivPtr’ [-Werror=format=] ^ xorg/xserver/hw/xfree86/dri/dri.c:1695:19: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘DRIContextPrivPtr’ [-Werror=format=] Signed-off-by: Jon TURNEY Reviewed-by: Peter Hutterer --- hw/xfree86/dri/dri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c index ae92fc213..875c9cc6c 100644 --- a/hw/xfree86/dri/dri.c +++ b/hw/xfree86/dri/dri.c @@ -1691,7 +1691,7 @@ DRISwapContext(int drmFD, void *oldctx, void *newctx) if (!newContext) { DRIDrvMsg(pScreen->myNum, X_ERROR, - "[DRI] Context Switch Error: oldContext=%x, newContext=%x\n", + "[DRI] Context Switch Error: oldContext=%p, newContext=%p\n", oldContext, newContext); return; } -- cgit v1.2.3