From: Jérémie Galarneau Date: Thu, 30 Nov 2017 22:45:30 +0000 (+0100) Subject: Fix: unknown consumer type considered a libc error X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=b60e718380f4a71d74bc19ffd4a2f777219c737f Fix: unknown consumer type considered a libc error 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 --- 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) {