startup_attach: fix compilation warning
* strace.c (startup_attach): Split single error_msg statement with
variable number of arguments to silence a compilation warning.
diff --git a/strace.c b/strace.c
index d610f70..b2b82e3 100644
--- a/strace.c
+++ b/strace.c
@@ -1036,10 +1036,13 @@
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