From: Dmitry V. Levin Date: Fri, 27 May 2016 00:42:07 +0000 (+0000) Subject: evdev.c: fix EVIOCGVERSION decoding X-Git-Tag: v4.12~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b29569aa1dec998e58768e42f5b99fdbebfe1389;p=strace evdev.c: fix EVIOCGVERSION decoding * evdev.c (evdev_read_ioctl): Print EVIOCGVERSION's argument using #x format. --- diff --git a/evdev.c b/evdev.c index 2ae791dd..b889bb99 100644 --- a/evdev.c +++ b/evdev.c @@ -389,7 +389,7 @@ evdev_read_ioctl(struct tcb *tcp, const unsigned int code, const long arg) switch (code) { case EVIOCGVERSION: tprints(", "); - printnum_int(tcp, arg, "%" PRIx32); + printnum_int(tcp, arg, "%#x"); return 1; case EVIOCGEFFECTS: tprints(", ");