mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] common: prefix panic with PANIC:
@ 2025-08-06 12:47 Ahmad Fatoum
  2025-08-06 12:47 ` [PATCH 2/2] ARM: interrupts: unify panic output on unhandled exception Ahmad Fatoum
  2025-08-07  6:06 ` [PATCH 1/2] common: prefix panic with PANIC: Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-08-06 12:47 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

This makes it easier to match against in the test suite.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 common/misc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/misc.c b/common/misc.c
index ce1fbc284f48..af22579af16f 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -289,6 +289,8 @@ BAREBOX_MAGICVAR(global.of.kernel.add_machine_compatible, "Extra machine/board c
 
 static void __noreturn do_panic(bool stacktrace, const char *fmt, va_list ap)
 {
+	if (*fmt)
+		eprintf("PANIC: ");
 	veprintf(fmt, ap);
 	eputchar('\n');
 
-- 
2.39.5




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-07  6:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-06 12:47 [PATCH 1/2] common: prefix panic with PANIC: Ahmad Fatoum
2025-08-06 12:47 ` [PATCH 2/2] ARM: interrupts: unify panic output on unhandled exception Ahmad Fatoum
2025-08-07  6:06 ` [PATCH 1/2] common: prefix panic with PANIC: Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox