aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-31 01:49:05 +0200
committerMattias Andrée <maandree@kth.se>2020-05-31 01:49:05 +0200
commit95e29b0a681ef652e4d28e129bb89b79db410deb (patch)
tree7ae5327ab8de1588a4450dd021a08b15ed34342e /util.c
parentPrint signal names (diff)
downloadsctrace-95e29b0a681ef652e4d28e129bb89b79db410deb.tar.gz
sctrace-95e29b0a681ef652e4d28e129bb89b79db410deb.tar.bz2
sctrace-95e29b0a681ef652e4d28e129bb89b79db410deb.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index 521f73a..2933fcc 100644
--- a/util.c
+++ b/util.c
@@ -22,7 +22,8 @@ tprintf(struct process *proc, const char *fmt, ...)
va_list ap;
if (fmt[0] == '\n' && fmt[1]) {
last_pid = 0;
- fmt = &fmt[1];
+ if (multiproctrace || last_char == '\n')
+ fmt = &fmt[1];
}
if (multiproctrace) {
if (proc->thread_group_leader) {