]> granicus.if.org Git - strace/commitdiff
evdev.c: fix EVIOCGVERSION decoding
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 27 May 2016 00:42:07 +0000 (00:42 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 28 May 2016 00:56:47 +0000 (00:56 +0000)
* evdev.c (evdev_read_ioctl): Print EVIOCGVERSION's argument
using #x format.

evdev.c

diff --git a/evdev.c b/evdev.c
index 2ae791dd6d4e94f4cec69e654780437abe4d89ca..b889bb991c8017cc335c56b76c97c35e20ed73c4 100644 (file)
--- 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(", ");