From: Philippe Proulx Date: Wed, 22 Feb 2017 15:20:46 +0000 (-0500) Subject: babeltrace-cfg.c: add "Command line error" prefix to error messages X-Git-Tag: v2.0.0-pre1~449 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=82a498b74137f0a829ab24ecf83cf0d3cdc2dd78 babeltrace-cfg.c: add "Command line error" prefix to error messages Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/converter/babeltrace-cfg.c b/converter/babeltrace-cfg.c index 706fbfd8..b64fa8db 100644 --- a/converter/babeltrace-cfg.c +++ b/converter/babeltrace-cfg.c @@ -48,13 +48,13 @@ * (since the following lines usually describe the error and possible * solutions), or the error prefix just at the end. */ -#define printf_err(fmt, args...) \ - do { \ - if (is_first_error) { \ - fprintf(stderr, "Error: "); \ - is_first_error = false; \ - } \ - fprintf(stderr, fmt, ##args); \ +#define printf_err(fmt, args...) \ + do { \ + if (is_first_error) { \ + fprintf(stderr, "Command line error: "); \ + is_first_error = false; \ + } \ + fprintf(stderr, fmt, ##args); \ } while (0) static bool is_first_error = true;