babeltrace-cfg.c: add "Command line error" prefix to error messages
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 22 Feb 2017 15:20:46 +0000 (10:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace-cfg.c

index 706fbfd803402699b7bcf873f0059568821ad204..b64fa8db644ef78c7bd81628c122d0a540131779 100644 (file)
  * (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;
This page took 0.026989 seconds and 4 git commands to generate.