]> granicus.if.org Git - strace/commitdiff
Fix printing of invalid arguments of term ioctls
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 23:36:14 +0000 (23:36 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 17 May 2016 08:03:58 +0000 (08:03 +0000)
* term.c (term_ioctl): Print arguments of TCXONC and TCFLSH ioctls
using printxval_long.

term.c

diff --git a/term.c b/term.c
index c913a468042c46659a609327a16c118cc63a0999..530ffc4cadc35e28ba31503e4a86ffce00f13f77 100644 (file)
--- a/term.c
+++ b/term.c
@@ -222,11 +222,11 @@ term_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
        /* ioctls with a direct decodable arg */
        case TCXONC:
                tprints(", ");
-               printxval(tcxonc_options, arg, "TC???");
+               printxval_long(tcxonc_options, arg, "TC???");
                break;
        case TCFLSH:
                tprints(", ");
-               printxval(tcflsh_options, arg, "TC???");
+               printxval_long(tcflsh_options, arg, "TC???");
                break;
        case TCSBRK:
        case TCSBRKP: