Minor changes to pr_emerg lines in file: panic.c

Changes at lines 348, 424, and 457.
This commit is contained in:
Rościsław Szymański 2024-10-01 09:37:24 +02:00 committed by GitHub
parent e32cde8d2b
commit df766d8eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,7 +345,7 @@ void panic(const char *fmt, ...)
if (len && buf[len - 1] == '\n') if (len && buf[len - 1] == '\n')
buf[len - 1] = '\0'; 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 #ifdef CONFIG_DEBUG_BUGVERBOSE
/* /*
* Avoid nested stack-dumping if a panic occurs during oops processing * 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. * Delay timeout seconds before rebooting the machine.
* We can't use the "normal" timers since we just panicked. * 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) { for (i = 0; i < panic_timeout * 1000; i += PANIC_TIMER_STEP) {
touch_nmi_watchdog(); touch_nmi_watchdog();
@ -454,7 +454,7 @@ void panic(const char *fmt, ...)
#if defined(CONFIG_S390) #if defined(CONFIG_S390)
disabled_wait(); disabled_wait();
#endif #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 */ /* Do not scroll important messages printed above */
suppress_printk = 1; suppress_printk = 1;