startup_attach: fix compilation warning
* strace.c (startup_attach): Split single error_msg statement with variable number of arguments to silence a compilation warning.
This commit is contained in:
parent
db9af94715
commit
bb746ff803
11
strace.c
11
strace.c
@ -1036,10 +1036,13 @@ startup_attach(void)
|
||||
continue;
|
||||
}
|
||||
if (!qflag) {
|
||||
error_msg(ntid > 1
|
||||
? "Process %u attached with %u threads"
|
||||
: "Process %u attached",
|
||||
tcp->pid, ntid);
|
||||
if (ntid > 1)
|
||||
error_msg("Process %u attached"
|
||||
" with %u threads",
|
||||
tcp->pid, ntid);
|
||||
else
|
||||
error_msg("Process %u attached",
|
||||
tcp->pid);
|
||||
}
|
||||
if (!(tcp->flags & TCB_ATTACHED)) {
|
||||
/* -p PID, we failed to attach to PID itself
|
||||
|
Loading…
x
Reference in New Issue
Block a user