From aa21c07f2ee04bf7d6d6c8942a8c71fbfffc4b90 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 28 May 2016 00:49:17 +0000 Subject: [PATCH] evdev.c: fix printing of unrecognized event type passed to EVIOCGBIT * evdev.c (bit_ioctl): If event type is not unrecognized, print the argument as an address. --- evdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evdev.c b/evdev.c index 24af1ca9..9a6c631b 100644 --- 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; } } -- 2.50.1