mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01: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:
This commit is contained in:
parent
5931758dbc
commit
723effd051
13 changed files with 55 additions and 48 deletions
|
@ -63,7 +63,7 @@ KResultOr<u32> Process::peek_user_data(Userspace<const u32*> address)
|
|||
// process that called PT_PEEK
|
||||
ProcessPagingScope scope(*this);
|
||||
if (!copy_from_user(&result, address)) {
|
||||
dbg() << "Invalid address for peek_user_data: " << address.ptr();
|
||||
dbgln("Invalid address for peek_user_data: {}", address.ptr());
|
||||
return KResult(-EFAULT);
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ int Process::sys$select(const Syscall::SC_select_params* user_params)
|
|||
|
||||
auto description = file_description(fd);
|
||||
if (!description) {
|
||||
dbg() << "sys$select: Bad fd number " << fd;
|
||||
dbgln("sys$select: Bad fd number {}", fd);
|
||||
return -EBADF;
|
||||
}
|
||||
fds_info.append({ description.release_nonnull(), (Thread::FileBlocker::BlockFlags)block_flags });
|
||||
|
@ -183,7 +183,7 @@ int Process::sys$poll(Userspace<const Syscall::SC_poll_params*> user_params)
|
|||
auto& pfd = fds_copy[i];
|
||||
auto description = file_description(pfd.fd);
|
||||
if (!description) {
|
||||
dbg() << "sys$poll: Bad fd number " << pfd.fd;
|
||||
dbgln("sys$poll: Bad fd number {}", pfd.fd);
|
||||
return -EBADF;
|
||||
}
|
||||
u32 block_flags = (u32)Thread::FileBlocker::BlockFlags::Exception; // always want POLLERR, POLLHUP, POLLNVAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue