diff options
author | Mattias Andrée <maandree@kth.se> | 2020-05-31 01:49:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-05-31 01:49:05 +0200 |
commit | 95e29b0a681ef652e4d28e129bb89b79db410deb (patch) | |
tree | 7ae5327ab8de1588a4450dd021a08b15ed34342e /util.c | |
parent | Print signal names (diff) | |
download | sctrace-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |