From: Denys Vlasenko Date: Wed, 8 Jun 2011 14:15:04 +0000 (+0200) Subject: Print at least one space between SYSCALL(ARGS) and = RESULT if tracee is killed X-Git-Tag: v4.7~385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e62df004ce7a649c014fc0b5af058d56bc168920;p=strace Print at least one space between SYSCALL(ARGS) and = RESULT if tracee is killed We already do it in the normal case, but in rare code path where tracee is gone (SIGKILLed?) sometimes we were printing this: "SYSCALL(ARGS )= ? " - note jammed together ")=". test/sigkill_rain.c can be used to verify the fix. * strace.c (printleader): add a space after ")" in " )" Signed-off-by: Denys Vlasenko --- diff --git a/strace.c b/strace.c index fcdb37e3..d5579d34 100644 --- a/strace.c +++ b/strace.c @@ -2953,7 +2953,7 @@ printleader(struct tcb *tcp) if (tcp_last) { if (tcp_last->ptrace_errno) { if (tcp_last->flags & TCB_INSYSCALL) { - tprintf(" )"); + tprintf(" ) "); tabto(acolumn); } tprintf("= ? \n");