:: commit bfa7db951c1273e65d7b334cc566f2bac32f37b2

mintsuki <mintsuki@protonmail.com> — 2022-01-25 07:50

parents: fb99d3b0ab

panic: Add missing ifdef

diff --git a/stage23/lib/panic.s2.c b/stage23/lib/panic.s2.c
index 71cf3d43..b61f6a98 100644
--- a/stage23/lib/panic.s2.c
+++ b/stage23/lib/panic.s2.c
@@ -41,11 +41,15 @@ noreturn void panic(bool allow_menu, const char *fmt, ...) {
         term_fallback();
     }
 
+#if bios == 1
     if (stage3_loaded) {
+#endif
         print("\033[31mPANIC\033[37;1m\033[0m: ");
+#if bios == 1
     } else {
         print("PANIC: ");
     }
+#endif
     vprint(fmt, args);
 
     va_end(args);
tab: 248 wrap: offon