mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02: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:
Notes:
sideshowbarker
2024-07-18 23:59:03 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/938e5c7719e Pull-request: https://github.com/SerenityOS/serenity/pull/4870
@@ -77,7 +77,7 @@ bool TLSv12::write(ReadonlyBytes buffer)
|
||||
{
|
||||
if (m_context.connection_status != ConnectionStatus::Established) {
|
||||
#ifdef TLS_DEBUG
|
||||
dbg() << "write request while not connected";
|
||||
dbgln("write request while not connected");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
@@ -194,7 +194,7 @@ bool TLSv12::check_connection_state(bool read)
|
||||
if (!Core::Socket::is_open() || !Core::Socket::is_connected() || Core::Socket::eof()) {
|
||||
// an abrupt closure (the server is a jerk)
|
||||
#ifdef TLS_DEBUG
|
||||
dbg() << "Socket not open, assuming abrupt closure";
|
||||
dbgln("Socket not open, assuming abrupt closure");
|
||||
#endif
|
||||
m_context.connection_finished = true;
|
||||
}
|
||||
@@ -218,7 +218,7 @@ bool TLSv12::check_connection_state(bool read)
|
||||
} else {
|
||||
m_context.connection_finished = false;
|
||||
#ifdef TLS_DEBUG
|
||||
dbg() << "FINISHED";
|
||||
dbgln("FINISHED");
|
||||
#endif
|
||||
}
|
||||
if (!m_context.application_buffer.size()) {
|
||||
@@ -239,7 +239,7 @@ bool TLSv12::flush()
|
||||
return true;
|
||||
|
||||
#ifdef TLS_DEBUG
|
||||
dbg() << "SENDING...";
|
||||
dbgln("SENDING...");
|
||||
print_buffer(out_buffer, out_buffer_length);
|
||||
#endif
|
||||
if (Core::Socket::write(&out_buffer[out_buffer_index], out_buffer_length)) {
|
||||
|
||||
Reference in New Issue
Block a user