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.11.0-rc1~442 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=59ee5091eaa9ad62a76a4ec3641993da98172ed9;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;