Moved setting the debug syslog default to main(). Previously that was done
only when the boot loader menu was entered. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35977 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,6 +35,11 @@ main(stage2_args *args)
|
|||||||
|
|
||||||
TRACE(("boot(): heap initialized...\n"));
|
TRACE(("boot(): heap initialized...\n"));
|
||||||
|
|
||||||
|
// set debug syslog default
|
||||||
|
#if KDEBUG_ENABLE_DEBUG_SYSLOG
|
||||||
|
gKernelArgs.keep_debug_output_buffer = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
// construct boot_volume KMessage explicitely
|
// construct boot_volume KMessage explicitely
|
||||||
new(&gKernelArgs.boot_volume) KMessage;
|
new(&gKernelArgs.boot_volume) KMessage;
|
||||||
|
|
||||||
|
|||||||
@@ -734,12 +734,6 @@ add_debug_menu()
|
|||||||
item->SetHelpText("Displays debug output on screen while the system "
|
item->SetHelpText("Displays debug output on screen while the system "
|
||||||
"is booting, instead of the normal boot logo.");
|
"is booting, instead of the normal boot logo.");
|
||||||
|
|
||||||
// set debug syslog default; doesn't really belong here, but there's no
|
|
||||||
// better place ATM
|
|
||||||
#if KDEBUG_ENABLE_DEBUG_SYSLOG
|
|
||||||
gKernelArgs.keep_debug_output_buffer = true;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
menu->AddItem(item = new(nothrow) MenuItem("Enable debug syslog"));
|
menu->AddItem(item = new(nothrow) MenuItem("Enable debug syslog"));
|
||||||
item->SetType(MENU_ITEM_MARKABLE);
|
item->SetType(MENU_ITEM_MARKABLE);
|
||||||
item->SetMarked(gKernelArgs.keep_debug_output_buffer);
|
item->SetMarked(gKernelArgs.keep_debug_output_buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user