summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2017-01-01 21:46:42 +0300
committerDmitry V. Levin <ldv@altlinux.org>2017-01-06 11:39:33 +0000
commita8f0442fd78ea556445d90710be89d4463a3cbf6 (patch)
treeefb2143594d5708e3141e3a86a6accf32cc0e34d /term.c
parentae663f17fef1a6ee727a0d66bf5b7c0a6da79d26 (diff)
downloadstrace-a8f0442fd78ea556445d90710be89d4463a3cbf6.tar.gz
term: do not abort decoding in case of non-verbose output
The case of unset verbose is handled by umoven_or_printaddr, moreover, exiting at this point is plain wrong and leads to last argument not being printed while it should be. * term.c (decode_termios, decode_termio, decode_winsize, decode_ttysize, decode_modem_flags): Do not check verbose flags explicitly and do not exit early if it is not set.
Diffstat (limited to 'term.c')
-rw-r--r--term.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/term.c b/term.c
index dcac3ccd3..d083cdd54 100644
--- a/term.c
+++ b/term.c
@@ -43,9 +43,6 @@ decode_termios(struct tcb *const tcp, const kernel_ulong_t addr)
struct termios tios;
int i;
- if (!verbose(tcp))
- return;
-
tprints(", ");
if (umove_or_printaddr(tcp, addr, &tios))
return;
@@ -79,9 +76,6 @@ decode_termio(struct tcb *const tcp, const kernel_ulong_t addr)
struct termio tio;
int i;
- if (!verbose(tcp))
- return;
-
tprints(", ");
if (umove_or_printaddr(tcp, addr, &tio))
return;
@@ -120,9 +114,6 @@ decode_winsize(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct winsize ws;
- if (!verbose(tcp))
- return;
-
tprints(", ");
if (umove_or_printaddr(tcp, addr, &ws))
return;
@@ -136,9 +127,6 @@ decode_ttysize(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct ttysize ts;
- if (!verbose(tcp))
- return;
-
tprints(", ");
if (umove_or_printaddr(tcp, addr, &ts))
return;
@@ -152,9 +140,6 @@ decode_modem_flags(struct tcb *const tcp, const kernel_ulong_t addr)
{
int i;
- if (!verbose(tcp))
- return;
-
tprints(", ");
if (umove_or_printaddr(tcp, addr, &i))
return;