Send panic to natfeat output as well.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-07-20 17:04:41 +00:00
parent f02e1e36e9
commit c6d022fab9
+7 -1
View File
@@ -18,19 +18,25 @@
void
panic(const char *format, ...)
{
const char greetings[] = "\n*** PANIC ***";
char buffer[512];
va_list list;
int length;
//platform_switch_to_text_mode();
Bconputs(DEV_CONSOLE, "\n*** PANIC ***");
Bconputs(DEV_CONSOLE, greetings);
// send to the emulator's stdout if available
nat_feat_debugprintf(greetings);
nat_feat_debugprintf("\n");
va_start(list, format);
length = vsnprintf(buffer, sizeof(buffer), format, list);
va_end(list);
Bconputs(DEV_CONSOLE, buffer);
// send to the emulator's stdout if available
nat_feat_debugprintf(buffer);
Bconputs(DEV_CONSOLE, "\nPress key to reboot.");