:: commit 5aab6209557d4a9512f689019fff31a227c316e1

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

parents: 5b3e8c393f

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