From 82a498b74137f0a829ab24ecf83cf0d3cdc2dd78 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 22 Feb 2017 10:20:46 -0500 Subject: [PATCH] babeltrace-cfg.c: add "Command line error" prefix to error messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- converter/babeltrace-cfg.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; -- 2.34.1