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-Tag: v2.10.2~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c515f4d801e86fda78630aea2a4ec74454a3e5a;p=lttng-tools.git 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) {