If panic is called with a string in the PBL, print the panic string before falling into the busy loop. Signed-off-by: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx> --- pbl/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pbl/misc.c b/pbl/misc.c index 7e76120..201ae38 100644 --- a/pbl/misc.c +++ b/pbl/misc.c @@ -11,5 +11,10 @@ void __noreturn hang(void) void __noreturn panic(const char *fmt, ...) { + va_list args; + + va_start(args, fmt); + printf(fmt, args); + va_end(args); while(1); } -- git-series 0.9.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox