mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:07:45 +00:00
LibCore: Convert dbgprintf() => dbgln()
This commit is contained in:
parent
dffab4e034
commit
c1dd5553a8
2 changed files with 2 additions and 5 deletions
|
@ -184,7 +184,7 @@ String IODevice::read_line(size_t max_size)
|
||||||
return {};
|
return {};
|
||||||
if (m_eof) {
|
if (m_eof) {
|
||||||
if (m_buffered_data.size() > max_size) {
|
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 {};
|
return {};
|
||||||
}
|
}
|
||||||
auto line = String((const char*)m_buffered_data.data(), m_buffered_data.size(), Chomp);
|
auto line = String((const char*)m_buffered_data.data(), m_buffered_data.size(), Chomp);
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#include <AK/Debug.h>
|
#include <AK/Debug.h>
|
||||||
#include <LibCore/NetworkJob.h>
|
#include <LibCore/NetworkJob.h>
|
||||||
#include <LibCore/NetworkResponse.h>
|
#include <LibCore/NetworkResponse.h>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
|
@ -68,9 +67,7 @@ void NetworkJob::did_fail(Error error)
|
||||||
NonnullRefPtr<NetworkJob> protector(*this);
|
NonnullRefPtr<NetworkJob> protector(*this);
|
||||||
|
|
||||||
m_error = error;
|
m_error = error;
|
||||||
#if CNETWORKJOB_DEBUG
|
dbgln_if(CNETWORKJOB_DEBUG, "{}{{{:p}}} job did_fail! error: {} ({})", class_name(), this, (unsigned)error, to_string(error));
|
||||||
dbgprintf("%s{%p} job did_fail! error: %u (%s)\n", class_name(), this, (unsigned)error, to_string(error));
|
|
||||||
#endif
|
|
||||||
ASSERT(on_finish);
|
ASSERT(on_finish);
|
||||||
on_finish(false);
|
on_finish(false);
|
||||||
shutdown();
|
shutdown();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue