projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reuse constant string instead of duplicate literal
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 303f755fb97f7afe3a73de4c57fa3638c9bdca4a..f59e4bc0b3576dcf43ab66a7ef1a465dee2e25df 100644
(file)
--- 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) {
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.024686 seconds
and
4
git commands to generate.