summaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorAkashdeep Kaur <[email protected]>2025-06-25 18:10:53 +0530
committerTom Rini <[email protected]>2025-06-26 11:57:59 -0600
commit757227777b6ff446491fe95977e699b98dbb0434 (patch)
treec7dc20e7a296a6b9699775a3afa1234ebd483e82 /include/log.h
parent661bafa182eae5cc666a0233d17e4d88aec679f8 (diff)
log: Fix the compilation error for emergency log
The log level "emergency" cannot be used as that results in compilation failure. Correct the macro name used to print at this level. Fixes: 249679658750 ("log: provide missing macros") Signed-off-by: Akashdeep Kaur <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/log.h b/include/log.h
index dd44badc361..59c66eb7909 100644
--- a/include/log.h
+++ b/include/log.h
@@ -176,7 +176,7 @@ int _log_buffer(enum log_category_t cat, enum log_level_t level,
#define _LOG_MAX_LEVEL LOGL_INFO
#endif
-#define log_emer(_fmt...) log(LOG_CATEGORY, LOGL_EMERG, ##_fmt)
+#define log_emerg(_fmt...) log(LOG_CATEGORY, LOGL_EMERG, ##_fmt)
#define log_alert(_fmt...) log(LOG_CATEGORY, LOGL_ALERT, ##_fmt)
#define log_crit(_fmt...) log(LOG_CATEGORY, LOGL_CRIT, ##_fmt)
#define log_err(_fmt...) log(LOG_CATEGORY, LOGL_ERR, ##_fmt)