diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-18 07:18:37 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-08-20 18:07:32 -0600 |
commit | 76a9d96feb6837a411db98a0abde7081f091a21b (patch) | |
tree | c7972dead08825a7b701e64b7e341efffd885dfd /include | |
parent | 7960a0a289506890474db0703344a87ac2f295db (diff) | |
download | u-boot-76a9d96feb6837a411db98a0abde7081f091a21b.tar.gz u-boot-76a9d96feb6837a411db98a0abde7081f091a21b.tar.bz2 u-boot-76a9d96feb6837a411db98a0abde7081f091a21b.zip |
log: Drop log_nop() functions
These functions are not needed anymore since we now have logic which can
output to the console if logging is disabled. Drop the declarations.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/log.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/log.h b/include/log.h index 7abc70e439..df497bad18 100644 --- a/include/log.h +++ b/include/log.h @@ -130,18 +130,6 @@ int _log(enum log_category_t cat, enum log_level_t level, const char *file, int line, const char *func, const char *fmt, ...) __attribute__ ((format (__printf__, 6, 7))); -static inline int _log_nop(enum log_category_t cat, enum log_level_t level, - const char *file, int line, const char *func, - const char *fmt, ...) - __attribute__ ((format (__printf__, 6, 7))); - -static inline int _log_nop(enum log_category_t cat, enum log_level_t level, - const char *file, int line, const char *func, - const char *fmt, ...) -{ - return 0; -} - /** * _log_buffer - Internal function to print data buffer in hex and ascii form * @@ -240,12 +228,6 @@ int _log_buffer(enum log_category_t cat, enum log_level_t level, }) #endif -#define log_nop(_cat, _level, _fmt, _args...) ({ \ - int _l = _level; \ - _log_nop((enum log_category_t)(_cat), _l, __FILE__, __LINE__, \ - __func__, pr_fmt(_fmt), ##_args); \ -}) - #ifdef DEBUG #define _DEBUG 1 #else |