[PATCH] dix: silence compiler warning

Peter Hutterer peter.hutterer at who-t.net
Sun Apr 17 22:55:42 PDT 2011


resource.c: In function 'AddResource':
resource.c:493:3: warning: format '%lx' expects type 'long unsigned int',
but argument 3 has type 'RESTYPE'

RESTYPE is uint32_t, not long.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/resource.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dix/resource.c b/dix/resource.c
index a04f49f..eb9f049 100644
--- a/dix/resource.c
+++ b/dix/resource.c
@@ -489,7 +489,7 @@ AddResource(XID id, RESTYPE type, pointer value)
     rrec = &clientTable[client];
     if (!rrec->buckets)
     {
-	ErrorF("[dix] AddResource(%lx, %lx, %lx), client=%d \n",
+	ErrorF("[dix] AddResource(%lx, %x, %lx), client=%d \n",
 		(unsigned long)id, type, (unsigned long)value, client);
         FatalError("client not in use\n");
     }
-- 
1.7.4.4


More information about the xorg-devel mailing list