From: Jérémie Galarneau Date: Fri, 4 Mar 2016 16:59:57 +0000 (-0500) Subject: Reuse constant string instead of duplicate literal X-Git-Tag: v2.8.0-rc1~119 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=00505bae99a7c67f81a9c198ef2d53f172f34f77;p=lttng-tools.git Reuse constant string instead of duplicate literal Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 303f755fb..f59e4bc0b 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -1082,8 +1082,8 @@ static int list_session_agent_events(void) filter_msg = malloc(strlen(filter_str) + strlen(filter_fmt) + 1); if (filter_msg) { - sprintf(filter_msg, " [filter: '%s']", - filter_str); + sprintf(filter_msg, filter_fmt, + filter_str); } }