-extern int babeltrace_verbose, babeltrace_debug;
-
-#define printf_verbose(fmt, args...) \
- do { \
- if (babeltrace_verbose) \
- fprintf(stdout, "[verbose] " fmt, ## args); \
- } while (0)
-
-#define printf_debug(fmt, args...) \
- do { \
- if (babeltrace_debug) \
- fprintf(stdout, "[debug] " fmt, ## args); \
- } while (0)
-
-#define _bt_printf(fp, kindstr, fmt, args...) \
- fprintf(fp, "[%s]%s%s%s: " fmt "\n", \
- kindstr, \
- (babeltrace_debug ? " \"" : ""), \
- (babeltrace_debug ? __func__ : ""), \
- (babeltrace_debug ? "\"" : ""), \
- ## args)
-
-#define _bt_printfl(fp, kindstr, lineno, fmt, args...) \
- fprintf(fp, "[%s]%s%s%s at line %u: " fmt "\n", \
- kindstr, \
- (babeltrace_debug ? " \"" : ""), \
- (babeltrace_debug ? __func__ : ""), \
- (babeltrace_debug ? "\"" : ""), \
- lineno, \
- ## args)
-
-/* printf without lineno information */
-#define printf_fatal(fmt, args...) \
- _bt_printf(stderr, "fatal", fmt, ## args)
-#define printf_error(fmt, args...) \
- _bt_printf(stderr, "error", fmt, ## args)
-#define printf_warning(fmt, args...) \
- _bt_printf(stderr, "warning", fmt, ## args)