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:
Дмитрий Левин 2015-11-26 01:54:53 +00:00
parent db9af94715
commit bb746ff803

View File

@ -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