From: Dmitry V. Levin Date: Sat, 28 May 2016 00:49:17 +0000 (+0000) Subject: evdev.c: fix printing of unrecognized event type passed to EVIOCGBIT X-Git-Tag: v4.12~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa21c07f2ee04bf7d6d6c8942a8c71fbfffc4b90;p=strace 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. --- 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; } }