summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-09-01 10:00:28 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-09-01 10:00:28 +0200
commit60fe8c139c6f2febefe595781812ddf0864a6ab8 (patch)
tree97c410d11e4867d088466922bc8541166c38995b /term.c
parent5940e6593911dcace424c668a1c0934c71fccb9e (diff)
downloadstrace-60fe8c139c6f2febefe595781812ddf0864a6ab8.tar.gz
strace-60fe8c139c6f2febefe595781812ddf0864a6ab8.tar.bz2
strace-60fe8c139c6f2febefe595781812ddf0864a6ab8.tar.xz
Use tprints with literal strings, it may be faster than tprintf
* bjm.c: Replace tprintf("str") with tprints("str"). * block.c: Likewise. * desc.c: Likewise. * file.c: Likewise. * io.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * resource.c: Likewise. * scsi.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'term.c')
-rw-r--r--term.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/term.c b/term.c
index 23d2317..fbdb165 100644
--- a/term.c
+++ b/term.c
@@ -212,15 +212,15 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
if (!verbose(tcp) || umove(tcp, arg, &tios) < 0)
return 0;
if (abbrev(tcp)) {
- tprintf(", {");
+ tprints(", {");
#ifndef FREEBSD
printxval(baud_options, tios.c_cflag & CBAUD, "B???");
#else
printxval(baud_options, tios.c_ispeed, "B???");
if (tios.c_ispeed != tios.c_ospeed) {
- tprintf(" (in)");
+ tprints(" (in)");
printxval(baud_options, tios.c_ospeed, "B???");
- tprintf(" (out)");
+ tprints(" (out)");
}
#endif
tprintf(" %sopost %sisig %sicanon %secho ...}",
@@ -257,7 +257,7 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
if (!verbose(tcp) || umove(tcp, arg, &tio) < 0)
return 0;
if (abbrev(tcp)) {
- tprintf(", {");
+ tprints(", {");
printxval(baud_options, tio.c_cflag & CBAUD, "B???");
tprintf(" %sopost %sisig %sicanon %secho ...}",
(tio.c_oflag & OPOST) ? "" : "-",
@@ -316,13 +316,13 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
/* ioctls with a direct decodable arg */
#ifdef TCXONC
case TCXONC:
- tprintf(", ");
+ tprints(", ");
printxval(tcxonc_options, arg, "TC???");
return 1;
#endif
#ifdef TCLFLSH
case TCFLSH:
- tprintf(", ");
+ tprints(", ");
printxval(tcflsh_options, arg, "TC???");
return 1;
#endif
@@ -336,9 +336,9 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
case TIOCMSET:
if (umove(tcp, arg, &i) < 0)
return 0;
- tprintf(", [");
+ tprints(", [");
printflags(modem_flags, i, "TIOCM_???");
- tprintf("]");
+ tprints("]");
return 1;
#endif /* TIOCMGET */
@@ -410,7 +410,7 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
#ifdef TIOCGPTN
case TIOCGPTN:
#endif
- tprintf(", ");
+ tprints(", ");
printnum_int(tcp, arg, "%d");
return 1;
@@ -419,7 +419,7 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
#ifdef TIOCSTI
case TIOCSTI:
#endif
- tprintf(", ");
+ tprints(", ");
printstr(tcp, arg, 1);
return 1;