mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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
|
@ -90,7 +90,7 @@ pid_t Process::sys$fork(RegisterState& regs)
|
|||
#endif
|
||||
auto region_clone = region.clone(*child);
|
||||
if (!region_clone) {
|
||||
dbg() << "fork: Cannot clone region, insufficient memory";
|
||||
dbgln("fork: Cannot clone region, insufficient memory");
|
||||
// TODO: tear down new process?
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ int Process::sys$module_load(Userspace<const char*> user_path, size_t path_lengt
|
|||
|
||||
auto* text_base = section_storage_by_name.get(".text").value_or(nullptr);
|
||||
if (!text_base) {
|
||||
dbg() << "No .text section found in module!";
|
||||
dbgln("No .text section found in module!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ int Process::sys$mount(Userspace<const Syscall::SC_mount_params*> user_params)
|
|||
if (description.is_null())
|
||||
return -EBADF;
|
||||
if (!description->file().is_seekable()) {
|
||||
dbg() << "mount: this is not a seekable file";
|
||||
dbgln("mount: this is not a seekable file");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ int Process::sys$select(const Syscall::SC_select_params* user_params)
|
|||
|
||||
if (current_thread->block<Thread::SelectBlocker>(timeout, fds_info).was_interrupted()) {
|
||||
#ifdef DEBUG_POLL_SELECT
|
||||
dbg() << "select was interrupted";
|
||||
dbgln("select was interrupted");
|
||||
#endif
|
||||
return -EINTR;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ int Process::sys$join_thread(pid_t tid, Userspace<void**> exit_value)
|
|||
}
|
||||
if (result == Thread::BlockResult::InterruptedByDeath)
|
||||
break;
|
||||
dbg() << "join_thread: retrying";
|
||||
dbgln("join_thread: retrying");
|
||||
}
|
||||
|
||||
if (exit_value && !copy_to_user(exit_value, &joinee_exit_value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue