From: Jérémie Galarneau Date: Fri, 23 Oct 2015 01:37:54 +0000 (-0400) Subject: Fix: Unchecked NULL string in logging statement X-Git-Tag: v2.7.1~9 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=be8753bb1dc255a3db00bcf0db9830748d270e3c;p=lttng-tools.git Fix: Unchecked NULL string in logging statement Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index e9cd5fa05..229647b10 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -807,7 +807,8 @@ struct agent_event *agent_create_event(const char *name, DBG3("Agent create new event with name %s, loglevel type %d, \ loglevel value %d and filter %s", - name, loglevel_type, loglevel_value, filter_expression); + name, loglevel_type, loglevel_value, + filter_expression ? filter_expression : "NULL"); if (!name) { ERR("Failed to create agent event; no name provided.");