[PATCH 10/13] log: Drop log_nop() functions
Simon Glass
sjg at chromium.org
Wed Mar 17 19:18:37 CET 2021
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 at chromium.org>
---
include/log.h | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/include/log.h b/include/log.h
index 748e34d5a26..594a361c613 100644
--- a/include/log.h
+++ b/include/log.h
@@ -128,18 +128,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;
-}
-
/* Define this at the top of a file to add a prefix to debug messages */
#ifndef pr_fmt
#define pr_fmt(fmt) fmt
@@ -199,12 +187,6 @@ static inline int _log_nop(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
--
2.31.0.rc2.261.g7f71774620-goog
More information about the U-Boot
mailing list