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>
diff --git a/syscall.c b/syscall.c
index 02dce95..77df174 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2360,9 +2360,9 @@
}
if (res != 1) {
- tprintf(") ");
+ tprints(") ");
tabto();
- tprintf("= ? <unavailable>");
+ tprints("= ? <unavailable>");
printtrailer();
tcp->flags &= ~TCB_INSYSCALL;
return res;
@@ -2385,7 +2385,7 @@
sys_res = (*sysent[tcp->scno].sys_func)(tcp);
}
- tprintf(") ");
+ tprints(") ");
tabto();
u_error = tcp->u_error;
if (!SCNO_IN_RANGE(tcp->scno) ||
@@ -2399,16 +2399,16 @@
switch (u_error) {
#ifdef LINUX
case ERESTARTSYS:
- tprintf("= ? ERESTARTSYS (To be restarted)");
+ tprints("= ? ERESTARTSYS (To be restarted)");
break;
case ERESTARTNOINTR:
- tprintf("= ? ERESTARTNOINTR (To be restarted)");
+ tprints("= ? ERESTARTNOINTR (To be restarted)");
break;
case ERESTARTNOHAND:
- tprintf("= ? ERESTARTNOHAND (To be restarted)");
+ tprints("= ? ERESTARTNOHAND (To be restarted)");
break;
case ERESTART_RESTARTBLOCK:
- tprintf("= ? ERESTART_RESTARTBLOCK (To be restarted)");
+ tprints("= ? ERESTART_RESTARTBLOCK (To be restarted)");
break;
#endif /* LINUX */
default:
@@ -2427,7 +2427,7 @@
}
else {
if (sys_res & RVAL_NONE)
- tprintf("= ?");
+ tprints("= ?");
else {
switch (sys_res & RVAL_MASK) {
case RVAL_HEX: