evdev.c: fix printing of unrecognized event type passed to EVIOCGBIT
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 28 May 2016 00:49:17 +0000 (00:49 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 28 May 2016 00:56:47 +0000 (00:56 +0000)
* evdev.c (bit_ioctl): If event type is not unrecognized,
print the argument as an address.

evdev.c

diff --git a/evdev.c b/evdev.c
index 24af1ca9a2726aa444fe362e215bf52d5ecb9aa9..9a6c631b7a8ab07afee015125aa0ecfd1c54df8e 100644 (file)
--- a/evdev.c
+++ b/evdev.c
@@ -376,7 +376,9 @@ bit_ioctl(struct tcb *tcp, const unsigned int ev_nr, const long arg)
                        return decode_bitset(tcp, arg, evdev_ff_status,
                                             FF_STATUS_MAX, "FF_STATUS_???");
                default:
-                       return 0;
+                       tprints(", ");
+                       printaddr(arg);
+                       return 1;
        }
 }