[PATCH] Suppress a warning about mismatched parameter in format string (expected long int, provided unsigned int).

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Tue Apr 24 18:06:27 PDT 2007


---
 src/evdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index eceae20..7ee9d03 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -118,7 +118,7 @@ EvdevReadInput(InputInfoPtr pInfo)
         if (len != sizeof(ev)) {
             /* The kernel promises that we always only read a complete
              * event, so len != sizeof ev is an error. */
-            xf86Msg(X_ERROR, "Read error: %s (%d, %d != %ld)\n",
+            xf86Msg(X_ERROR, "Read error: %s (%d, %d != %u)\n",
 		    strerror(errno), errno, len, sizeof (ev));
 	    if (len < 0)
 		EvdevProc(pInfo->dev, DEVICE_CLOSE);
-- 
1.5.1.2




More information about the xorg mailing list