diff --git a/Userland/Libraries/LibCore/IODevice.cpp b/Userland/Libraries/LibCore/IODevice.cpp index 453526e408..58f29ed057 100644 --- a/Userland/Libraries/LibCore/IODevice.cpp +++ b/Userland/Libraries/LibCore/IODevice.cpp @@ -184,7 +184,7 @@ String IODevice::read_line(size_t max_size) return {}; if (m_eof) { if (m_buffered_data.size() > max_size) { - dbgprintf("IODevice::read_line: At EOF but there's more than max_size(%zu) buffered\n", max_size); + dbgln("IODevice::read_line: At EOF but there's more than max_size({}) buffered", max_size); return {}; } auto line = String((const char*)m_buffered_data.data(), m_buffered_data.size(), Chomp); diff --git a/Userland/Libraries/LibCore/NetworkJob.cpp b/Userland/Libraries/LibCore/NetworkJob.cpp index 46d91a1a7a..a2884d5a54 100644 --- a/Userland/Libraries/LibCore/NetworkJob.cpp +++ b/Userland/Libraries/LibCore/NetworkJob.cpp @@ -27,7 +27,6 @@ #include #include #include -#include namespace Core { @@ -68,9 +67,7 @@ void NetworkJob::did_fail(Error error) NonnullRefPtr protector(*this); m_error = error; -#if CNETWORKJOB_DEBUG - dbgprintf("%s{%p} job did_fail! error: %u (%s)\n", class_name(), this, (unsigned)error, to_string(error)); -#endif + dbgln_if(CNETWORKJOB_DEBUG, "{}{{{:p}}} job did_fail! error: {} ({})", class_name(), this, (unsigned)error, to_string(error)); ASSERT(on_finish); on_finish(false); shutdown();