]> granicus.if.org Git - strace/commit
ioctl: do not print comments twice in -Xverbose
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 7 Sep 2019 15:59:31 +0000 (16:59 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 Sep 2019 15:31:28 +0000 (15:31 +0000)
commitab86d857905a8b874ce6273192379a634e461539
treecedb26f097a02d7f7aa5a88ddcd54900f8116d47
parentd9c21e2c7348e2b6b85f8268df4e2a375cc60c0f
ioctl: do not print comments twice in -Xverbose

Figure out whether the ioctl code is decoded inside a comment and adjust
printflags/printxval calls accordingly.

* ioctl.c (ioctl_print_code, evdev_decode_number): Add abbrev variable,
set it to true if xlat style is not XLAT_STYLE_VERBOSE, do not provide
dflt and set xlat style to XLAT_STYLE_ABBREV in printflags/printxval
calls (that are now changed to printflags_ex/printxval_ex to accomodate
the change).
ioctl.c