From: Dmitry V. Levin Date: Thu, 26 Nov 2015 01:54:53 +0000 (+0000) Subject: startup_attach: fix compilation warning X-Git-Tag: v4.11~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb746ff8035119abc2f98a9fc88741124d1d9f39;p=strace 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 d610f707..b2b82e3d 100644 --- a/strace.c +++ b/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