[PATCH 4/5] common: print panic to stderr
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Jul 31 00:14:15 PDT 2024
Stack trace is already printed to stderr, so have the panic string end
up there too.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/misc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/misc.c b/common/misc.c
index 7bc92c0f9518..cf92d7a48b38 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -285,8 +285,8 @@ BAREBOX_MAGICVAR(global.of.kernel.add_machine_compatible, "Additional machine/bo
static void __noreturn do_panic(bool stacktrace, const char *fmt, va_list ap)
{
- vprintf(fmt, ap);
- putchar('\n');
+ veprintf(fmt, ap);
+ eputchar('\n');
if (stacktrace)
dump_stack();
--
2.39.2
More information about the barebox
mailing list