summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-31 15:02:30 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-31 17:43:54 +0100
commitb5aaae7b40a52c99decc0c147170d16fa397dd96 (patch)
treee8f972030f5081b55d7486e349825aa13d6b40c4 /Userland
parent303358220b3bf8a6790e6c4350f1e97387f113cf (diff)
downloadserenity-b5aaae7b40a52c99decc0c147170d16fa397dd96.zip
LibGemini: Replace fprintf(stderr) with warnln()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGemini/Job.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGemini/Job.cpp b/Userland/Libraries/LibGemini/Job.cpp
index bd0dfa5db3..fffd0cd0cd 100644
--- a/Userland/Libraries/LibGemini/Job.cpp
+++ b/Userland/Libraries/LibGemini/Job.cpp
@@ -65,7 +65,7 @@ void Job::on_socket_connected()
auto line = read_line(PAGE_SIZE);
if (line.is_null()) {
- fprintf(stderr, "Job: Expected status line\n");
+ warnln("Job: Expected status line");
return deferred_invoke([this](auto&) { did_fail(Core::NetworkJob::Error::TransmissionFailed); });
}
@@ -77,7 +77,7 @@ void Job::on_socket_connected()
auto status = parts[0].to_uint();
if (!status.has_value()) {
- fprintf(stderr, "Job: Expected numeric status code\n");
+ warnln("Job: Expected numeric status code");
return deferred_invoke([this](auto&) { did_fail(Core::NetworkJob::Error::ProtocolFailed); });
}
@@ -97,7 +97,7 @@ void Job::on_socket_connected()
} else if (m_status >= 60 && m_status < 70) {
m_state = State::InBody;
} else {
- fprintf(stderr, "Job: Expected status between 10 and 69; instead got %d\n", m_status);
+ warnln("Job: Expected status between 10 and 69; instead got {}", m_status);
return deferred_invoke([this](auto&) { did_fail(Core::NetworkJob::Error::ProtocolFailed); });
}