mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.Everything: The modifications in this commit were automatically made using the following command: find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
parent
40b8e21115
commit
938e5c7719
95 changed files with 331 additions and 331 deletions
|
@ -38,14 +38,14 @@ int Process::sys$reboot()
|
|||
|
||||
REQUIRE_NO_PROMISES;
|
||||
|
||||
dbg() << "acquiring FS locks...";
|
||||
dbgln("acquiring FS locks...");
|
||||
FS::lock_all();
|
||||
dbg() << "syncing mounted filesystems...";
|
||||
dbgln("syncing mounted filesystems...");
|
||||
FS::sync();
|
||||
dbg() << "attempting reboot via ACPI";
|
||||
dbgln("attempting reboot via ACPI");
|
||||
if (ACPI::is_enabled())
|
||||
ACPI::Parser::the()->try_acpi_reboot();
|
||||
dbg() << "attempting reboot via KB Controller...";
|
||||
dbgln("attempting reboot via KB Controller...");
|
||||
IO::out8(0x64, 0xFE);
|
||||
|
||||
return 0;
|
||||
|
@ -58,18 +58,18 @@ int Process::sys$halt()
|
|||
|
||||
REQUIRE_NO_PROMISES;
|
||||
|
||||
dbg() << "acquiring FS locks...";
|
||||
dbgln("acquiring FS locks...");
|
||||
FS::lock_all();
|
||||
dbg() << "syncing mounted filesystems...";
|
||||
dbgln("syncing mounted filesystems...");
|
||||
FS::sync();
|
||||
dbg() << "attempting system shutdown...";
|
||||
dbgln("attempting system shutdown...");
|
||||
// QEMU Shutdown
|
||||
IO::out16(0x604, 0x2000);
|
||||
// If we're here, the shutdown failed. Try VirtualBox shutdown.
|
||||
IO::out16(0x4004, 0x3400);
|
||||
// VirtualBox shutdown failed. Try Bochs/Old QEMU shutdown.
|
||||
IO::out16(0xb004, 0x2000);
|
||||
dbg() << "shutdown attempts failed, applications will stop responding.";
|
||||
dbgln("shutdown attempts failed, applications will stop responding.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue