mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
Init Stage: Use dbg() instead of dbgprintf()
This commit is contained in:
parent
3f2d5f2774
commit
fcb1426a2b
Notes:
sideshowbarker
2024-07-19 09:01:22 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/fcb1426a2b2 Pull-request: https://github.com/SerenityOS/serenity/pull/1290
1 changed files with 5 additions and 5 deletions
|
@ -153,7 +153,7 @@ extern "C" [[noreturn]] void init()
|
||||||
PIT::initialize();
|
PIT::initialize();
|
||||||
|
|
||||||
if (text_debug) {
|
if (text_debug) {
|
||||||
dbgprintf("Text mode enabled\n");
|
dbg() << "Text mode enabled";
|
||||||
} else {
|
} else {
|
||||||
if (multiboot_info_ptr->framebuffer_type == 1 || multiboot_info_ptr->framebuffer_type == 2) {
|
if (multiboot_info_ptr->framebuffer_type == 1 || multiboot_info_ptr->framebuffer_type == 2) {
|
||||||
new MBVGADevice(
|
new MBVGADevice(
|
||||||
|
@ -255,7 +255,7 @@ void init_stage2()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mbr.is_protective_mbr()) {
|
if (mbr.is_protective_mbr()) {
|
||||||
dbgprintf("GPT Partitioned Storage Detected!\n");
|
dbg() << "GPT Partitioned Storage Detected!";
|
||||||
GPTPartitionTable gpt(root_dev);
|
GPTPartitionTable gpt(root_dev);
|
||||||
if (!gpt.initialize()) {
|
if (!gpt.initialize()) {
|
||||||
kprintf("init_stage2: couldn't read GPT from disk\n");
|
kprintf("init_stage2: couldn't read GPT from disk\n");
|
||||||
|
@ -268,7 +268,7 @@ void init_stage2()
|
||||||
}
|
}
|
||||||
root_dev = *partition;
|
root_dev = *partition;
|
||||||
} else {
|
} else {
|
||||||
dbgprintf("MBR Partitioned Storage Detected!\n");
|
dbg() << "MBR Partitioned Storage Detected!";
|
||||||
if (mbr.contains_ebr()) {
|
if (mbr.contains_ebr()) {
|
||||||
EBRPartitionTable ebr(root_dev);
|
EBRPartitionTable ebr(root_dev);
|
||||||
if (!ebr.initialize()) {
|
if (!ebr.initialize()) {
|
||||||
|
@ -308,9 +308,9 @@ void init_stage2()
|
||||||
|
|
||||||
Process::current->set_root_directory(VFS::the().root_custody());
|
Process::current->set_root_directory(VFS::the().root_custody());
|
||||||
|
|
||||||
dbgprintf("Load ksyms\n");
|
dbg() << "Load ksyms";
|
||||||
load_ksyms();
|
load_ksyms();
|
||||||
dbgprintf("Loaded ksyms\n");
|
dbg() << "Loaded ksyms";
|
||||||
|
|
||||||
// Now, detect whether or not there are actually any floppy disks attached to the system
|
// Now, detect whether or not there are actually any floppy disks attached to the system
|
||||||
u8 detect = CMOS::read(0x10);
|
u8 detect = CMOS::read(0x10);
|
||||||
|
|
Loading…
Add table
Reference in a new issue