1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +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:
asynts 2021-01-10 15:43:09 +01:00 committed by Andreas Kling
parent dca6f1f49b
commit 5931758dbc
7 changed files with 20 additions and 20 deletions

View file

@ -49,7 +49,7 @@ LoopbackAdapter::~LoopbackAdapter()
void LoopbackAdapter::send_raw(ReadonlyBytes payload)
{
dbg() << "LoopbackAdapter: Sending " << payload.size() << " byte(s) to myself.";
dbgln("LoopbackAdapter: Sending {} byte(s) to myself.", payload.size());
did_receive(payload);
}

View file

@ -149,7 +149,7 @@ KResult Socket::setsockopt(int level, int option, Userspace<const void*> user_va
}
return KSuccess;
default:
dbg() << "setsockopt(" << option << ") at SOL_SOCKET not implemented.";
dbgln("setsockopt({}) at SOL_SOCKET not implemented.", option);
return KResult(-ENOPROTOOPT);
}
}
@ -226,7 +226,7 @@ KResult Socket::getsockopt(FileDescription&, int level, int option, Userspace<vo
return KResult(-EFAULT);
return KSuccess;
default:
dbg() << "getsockopt(" << option << ") at SOL_SOCKET not implemented.";
dbgln("setsockopt({}) at SOL_SOCKET not implemented.", option);
return KResult(-ENOPROTOOPT);
}
}

View file

@ -465,7 +465,7 @@ void TCPSocket::shut_down_for_writing()
[[maybe_unused]] auto rc = send_tcp_packet(TCPFlags::FIN | TCPFlags::ACK);
set_state(State::FinWait1);
} else {
dbg() << " Shutting down TCPSocket for writing but not moving to FinWait1 since state is " << to_string(state());
dbgln(" Shutting down TCPSocket for writing but not moving to FinWait1 since state is {}", to_string(state()));
}
}