The "PANIC" line will now also appear on the blue screen, not only over serial.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12909 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
77c5f33de1
commit
d1407b9d2b
@ -242,7 +242,8 @@ parse_line(char *buf, char **argv, int *argc, int max_args)
|
||||
static void
|
||||
kernel_debugger_loop(void)
|
||||
{
|
||||
dprintf("Running on CPU %d\n", smp_get_current_cpu());
|
||||
kprintf("Welcome to Kernel Debugging Land...\n");
|
||||
kprintf("Running on CPU %d\n", smp_get_current_cpu());
|
||||
|
||||
sDebuggerOnCPU = smp_get_current_cpu();
|
||||
|
||||
@ -494,8 +495,7 @@ panic(const char *format, ...)
|
||||
vsnprintf(temp, sizeof(temp), format, args);
|
||||
va_end(args);
|
||||
|
||||
dprintf("PANIC: %s", temp);
|
||||
kernel_debugger(NULL);
|
||||
kernel_debugger(temp);
|
||||
}
|
||||
|
||||
|
||||
@ -527,12 +527,9 @@ kernel_debugger(const char *message)
|
||||
blue_screen_enter();
|
||||
}
|
||||
|
||||
if (message) {
|
||||
kprintf(message);
|
||||
kprintf("\n");
|
||||
}
|
||||
if (message)
|
||||
kprintf("PANIC: %s\n", message);
|
||||
|
||||
kprintf("Welcome to Kernel Debugging Land...\n");
|
||||
kernel_debugger_loop();
|
||||
|
||||
sBlueScreenOutput = false;
|
||||
|
Loading…
Reference in New Issue
Block a user