From abeb294508b5ba4054571e52db95b38a2973d7c0 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 20 Dec 2018 17:36:23 +0000 Subject: [PATCH] Remove printf_* macros Signed-off-by: Yuxuan Shui --- src/log.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/log.h b/src/log.h index 660db87..4bd4a3c 100644 --- a/src/log.h +++ b/src/log.h @@ -31,26 +31,6 @@ enum log_level { #define log_error(x, ...) LOG(ERROR, x, ##__VA_ARGS__) #define log_fatal(x, ...) LOG(FATAL, x, ##__VA_ARGS__) -/// Print out an error message. -#define printf_err(format, ...) log_error(format, ##__VA_ARGS__) - -/// Print out an error message with function name. -#define printf_errf(format, ...) log_error(format, ##__VA_ARGS__) - -/// Print out an error message with function name, and quit with a -/// specific exit code. -#define printf_errfq(code, format, ...) \ - { \ - log_error(format, ##__VA_ARGS__); \ - exit(code); \ - } - -/// Print out a debug message. -#define printf_dbg(format, ...) log_debug(format, ##__VA_ARGS__) - -/// Print out a debug message with function name. -#define printf_dbgf(format, ...) log_debug(format, ##__VA_ARGS__) - struct log; struct log_target;