Reuse constant string instead of duplicate literal
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 4 Mar 2016 16:59:57 +0000 (11:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 4 Mar 2016 17:02:03 +0000 (12:02 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index 303f755fb97f7afe3a73de4c57fa3638c9bdca4a..f59e4bc0b3576dcf43ab66a7ef1a465dee2e25df 100644 (file)
@@ -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);
                                }
                        }
 
This page took 0.02584 seconds and 4 git commands to generate.