[Patch] Minor changes to pr_emerg lines in file: panic.c

From: Helos
Date: Tue Oct 01 2024 - 04:49:00 EST


[Patch] Minor changes to pr_emerg lines in file: panic.c

This patch includes minor modifications at lines 348, 424, and 457 of file kernel/panic.c (pr_emerg lines)
They are just a visual changes that are meant to improve noticeability of pr_emerg lines on the screen during kernel panic. No kernel panic logic has been altered.

The patch is related to the PR: https://github.com/torvalds/linux/pull/968/commits/df766d8eb601bd453dd1573db21b394d4de3083d .

I would greatly appreciate it if you could review this patch and provide any feedback. I look forward to your response regarding the decision on this patch, either as a response to this email or a comment to the PR.

Best regards,
Rościsław Szymański (i.use.arch.btw.00111@xxxxxxxxx)

P.S
I want to apologize for not using git send-email to sending this email. I have encountered skill issues when trying to use it. I hope it did not cause any problems.
From df766d8eb601bd453dd1573db21b394d4de3083d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ro=C5=9Bcis=C5=82aw=20Szyma=C5=84ski?=
<156237164+I-use-Arch-btw-00111@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Oct 2024 09:37:24 +0200
Subject: [PATCH] Minor changes to pr_emerg lines in file: panic.c

Changes at lines 348, 424, and 457.
---
kernel/panic.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index fbc59b3b64d0b5..199345eb369fa0 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -345,7 +345,7 @@ void panic(const char *fmt, ...)
if (len && buf[len - 1] == '\n')
buf[len - 1] = '\0';

- pr_emerg("Kernel panic - not syncing: %s\n", buf);
+ pr_emerg("KERNEL PANIC - not syncing: %s\n", buf);
#ifdef CONFIG_DEBUG_BUGVERBOSE
/*
* Avoid nested stack-dumping if a panic occurs during oops processing
@@ -421,7 +421,7 @@ void panic(const char *fmt, ...)
* Delay timeout seconds before rebooting the machine.
* We can't use the "normal" timers since we just panicked.
*/
- pr_emerg("Rebooting in %d seconds..\n", panic_timeout);
+ pr_emerg("Attempting an EMERGENCY REBOOT in %d seconds..\n", panic_timeout);

for (i = 0; i < panic_timeout * 1000; i += PANIC_TIMER_STEP) {
touch_nmi_watchdog();
@@ -454,7 +454,7 @@ void panic(const char *fmt, ...)
#if defined(CONFIG_S390)
disabled_wait();
#endif
- pr_emerg("---[ end Kernel panic - not syncing: %s ]---\n", buf);
+ pr_emerg("---< end KERNEL PANIC - not syncing: %s >---\n", buf);

/* Do not scroll important messages printed above */
suppress_printk = 1;