From: Yunhui Cui Date: Tue, 10 Dec 2024 09:52:38 +0000 (+0800) Subject: watchdog: output this_cpu when printing hard LOCKUP X-Git-Tag: v6.14-rc1~78^2~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c16fc0c913a62d4ed52be1b31519f8837086187;p=thirdparty%2Fkernel%2Flinux.git watchdog: output this_cpu when printing hard LOCKUP When printing "Watchdog detected hard LOCKUP on cpu", also output the detecting CPU. It's more intuitive. Link: https://lkml.kernel.org/r/20241210095238.63444-1-cuiyunhui@bytedance.com Signed-off-by: Yunhui Cui Reviewed-by: Douglas Anderson Cc: Bitao Hu Cc: Joel Granados Cc: John Ogness Cc: Liu Song Cc: Song Liu Cc: Thomas Weißschuh Signed-off-by: Andrew Morton --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 41e0f7e9fa353..177abb7d0d4e5 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -190,7 +190,7 @@ void watchdog_hardlockup_check(unsigned int cpu, struct pt_regs *regs) * with printk_cpu_sync_get_irqsave() that we can still at least * get the message about the lockup out. */ - pr_emerg("Watchdog detected hard LOCKUP on cpu %d\n", cpu); + pr_emerg("CPU%u: Watchdog detected hard LOCKUP on cpu %u\n", this_cpu, cpu); printk_cpu_sync_get_irqsave(flags); print_modules();