]> granicus.if.org Git - strace/commitdiff
evdev.c: fix decoding of EVIOCGRAB and EVIOCREVOKE
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 27 May 2016 00:40:45 +0000 (00:40 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 28 May 2016 00:37:06 +0000 (00:37 +0000)
* evdev.c (evdev_write_ioctl): Print argument of EVIOCGRAB
and EVIOCREVOKE as unsigned long.

evdev.c

diff --git a/evdev.c b/evdev.c
index cef5a621b6f86f7431c4120256984a56ed3feb97..29c096be45d03cf4e37b866eebf27891bd2ca05c 100644 (file)
--- a/evdev.c
+++ b/evdev.c
@@ -448,16 +448,18 @@ evdev_write_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
                case EVIOCRMFF:
                        tprintf(", %d", (int) arg);
                        return 1;
-# ifdef EVIOCSCLOCKID
-               case EVIOCSCLOCKID:
-# endif
                case EVIOCGRAB:
 # ifdef EVIOCREVOKE
                case EVIOCREVOKE:
 # endif
+                       tprintf(", %lu", arg);
+                       return 1;
+# ifdef EVIOCSCLOCKID
+               case EVIOCSCLOCKID:
                        tprints(", ");
                        printnum_int(tcp, arg, "%u");
                        return 1;
+# endif
        }
 
        /* multi-number fixed-length commands */