X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=684ff5e5f4f9af9852c35e32d7182005c0985a38;hb=c9cb3e7db56f4325ed97c068f8ced2c2c0366495;hp=1b000ab7a58759bcf62422368d4d05474454ef95;hpb=a0b439da54ed351640b74ade4de16db27338ddd1;p=lttng-tools.git diff --git a/src/common/error.h b/src/common/error.h index 1b000ab7a..684ff5e5f 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -90,9 +90,9 @@ extern int lttng_opt_verbose; #define _MSG(fmt, args...) \ __lttng_print(PRINT_MSG, fmt, ## args) #define ERR(fmt, args...) \ - _ERRMSG("ERROR", PRINT_ERR, fmt, ## args) + __lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args) #define WARN(fmt, args...) \ - _ERRMSG("WARN", PRINT_WARN, fmt, ## args) + __lttng_print(PRINT_ERR, "Warning: " fmt "\n", ## args) #define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)