aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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) {