From: Dmitry V. Levin Date: Fri, 27 May 2016 00:40:45 +0000 (+0000) Subject: evdev.c: fix decoding of EVIOCGRAB and EVIOCREVOKE X-Git-Tag: v4.12~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9635df43b6d6fd76ce89b1ab5c2e9d2f9c534853;p=strace evdev.c: fix decoding of EVIOCGRAB and EVIOCREVOKE * evdev.c (evdev_write_ioctl): Print argument of EVIOCGRAB and EVIOCREVOKE as unsigned long. --- diff --git a/evdev.c b/evdev.c index cef5a621..29c096be 100644 --- 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 */