From 3b51642751cf6036f9b931fa964469bda306cd1f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 21 Dec 2025 06:39:43 -0700 Subject: [PATCH] printk: Fix pr_emerg to use log_emer The pr_emerg macro was calling log_emerg which doesn't exist. The correct function name is log_emer, matching the LOGL_EMERG log level. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/printk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/printk.h b/include/linux/printk.h index e28cef0ac31..edf149f52c7 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -35,7 +35,7 @@ #define pr_emerg(fmt, ...) \ ({ \ - CONFIG_LOGLEVEL > 0 ? log_emerg(fmt, ##__VA_ARGS__) : 0; \ + CONFIG_LOGLEVEL > 0 ? log_emer(fmt, ##__VA_ARGS__) : 0; \ }) #define pr_alert(fmt, ...) \ ({ \