From: Akashdeep Kaur Date: Wed, 25 Jun 2025 12:40:53 +0000 (+0530) Subject: log: Fix the compilation error for emergency log X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=757227777b6ff446491fe95977e699b98dbb0434;p=thirdparty%2Fu-boot.git 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 Reviewed-by: Quentin Schulz --- 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)