From: Jérémie Galarneau Date: Sun, 12 Nov 2017 20:19:35 +0000 (-0500) Subject: Fix: missing NULL checks in logging statements X-Git-Tag: v2.10.2~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=79af6b77877fb2c4b10e4f504cb8c371f9304b98;p=lttng-tools.git Fix: missing NULL checks in logging statements Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 76d087a1e..3d0a65def 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2413,9 +2413,9 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data) * fallback on the 32-bit one, */ DBG3("Looking for a kernel consumer at these locations:"); - DBG3(" 1) %s", config.consumerd64_bin_path.value); + DBG3(" 1) %s", config.consumerd64_bin_path.value ? : "NULL"); DBG3(" 2) %s/%s", INSTALL_BIN_PATH, DEFAULT_CONSUMERD_FILE); - DBG3(" 3) %s", config.consumerd32_bin_path.value); + DBG3(" 3) %s", config.consumerd32_bin_path.value ? : "NULL"); if (stat(config.consumerd64_bin_path.value, &st) == 0) { DBG3("Found location #1"); consumer_to_use = config.consumerd64_bin_path.value;