[Concept,01/15] printk: Fix pr_emerg to use log_emer

Message ID 20251221212028.857348-2-sjg@u-boot.org
State New
Headers
Series ext4l: Add jbd2 and remaining ext4l files to build (part F) |

Commit Message

Simon Glass Dec. 21, 2025, 9:20 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

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 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/linux/printk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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, ...)						\
 ({									\