[PATCH 1/4] dix: warning fix
Adam Jackson
ajax at redhat.com
Tue Mar 15 08:05:04 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'
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
dix/resource.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dix/resource.c b/dix/resource.c
index 26d2c72..6f907c4 100644
--- a/dix/resource.c
+++ b/dix/resource.c
@@ -489,8 +489,8 @@ AddResource(XID id, RESTYPE type, pointer value)
rrec = &clientTable[client];
if (!rrec->buckets)
{
- ErrorF("[dix] AddResource(%lx, %lx, %lx), client=%d \n",
- (unsigned long)id, type, (unsigned long)value, client);
+ ErrorF("[dix] AddResource(%x, %x, %lx), client=%d \n",
+ id, type, (unsigned long)value, client);
FatalError("client not in use\n");
}
if ((rrec->elements >= 4*rrec->buckets) &&
--
1.7.3.5
More information about the xorg-devel
mailing list