summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
849e5b7)
The lttng command line uses these two macros to print information to the
user. With the time and pid/tid, it is not really user friendly and
useful for the user.
Signed-off-by: David Goulet <dgoulet@efficios.com>
#define _MSG(fmt, args...) \
__lttng_print(PRINT_MSG, fmt, ## args)
#define ERR(fmt, args...) \
#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...) \
#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)
#define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)