From b60e718380f4a71d74bc19ffd4a2f777219c737f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 30 Nov 2017 23:45:30 +0100 Subject: [PATCH] Fix: unknown consumer type considered a libc error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The PERROR() macro uses the errno variable to print an error message. However, the consumer type being invalid is an internal error. The value of errno, at that point, is unrelated to the error. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 1eaf9bef3..6113f49ad 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2521,7 +2521,7 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data) break; } default: - PERROR("unknown consumer type"); + ERR("unknown consumer type"); exit(EXIT_FAILURE); } if (errno != 0) { -- 2.34.1