diff options
author | Nico Weber <thakis@chromium.org> | 2022-01-22 11:55:29 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 00:45:22 +0000 |
commit | a17b2248f2226f266ead4c5672a42c4d0d7715f9 (patch) | |
tree | f5668050d648f3db4abcf624d4a3747619778c18 | |
parent | b0790260f84f9b6c8cf7532a23a6fb15a5a127cf (diff) | |
download | serenity-a17b2248f2226f266ead4c5672a42c4d0d7715f9.zip |
LibHTTP+AK: Rename CHTTPJOB_DEBUG to HTTPJOB_DEBUG
-rw-r--r-- | AK/Debug.h.in | 8 | ||||
-rw-r--r-- | Meta/CMake/all_the_debug_macros.cmake | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibHTTP/HttpJob.cpp | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/AK/Debug.h.in b/AK/Debug.h.in index 1ffc6294ec..0f0e22479f 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -26,10 +26,6 @@ #cmakedefine01 CALLBACK_MACHINE_DEBUG #endif -#ifndef CHTTPJOB_DEBUG -#cmakedefine01 CHTTPJOB_DEBUG -#endif - #ifndef CNETWORKJOB_DEBUG #cmakedefine01 CNETWORKJOB_DEBUG #endif @@ -202,6 +198,10 @@ #cmakedefine01 HTML_SCRIPT_DEBUG #endif +#ifndef HTTPJOB_DEBUG +#cmakedefine01 HTTPJOB_DEBUG +#endif + #ifndef HTTPSJOB_DEBUG #cmakedefine01 HTTPSJOB_DEBUG #endif diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index f3c3ca97df..f3589c4c22 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -11,7 +11,6 @@ set(BMP_DEBUG ON) set(BXVGA_DEBUG ON) set(CACHE_DEBUG ON) set(CALLBACK_MACHINE_DEBUG ON) -set(CHTTPJOB_DEBUG ON) set(CNETWORKJOB_DEBUG ON) set(COMMIT_DEBUG ON) set(COMPOSE_DEBUG ON) @@ -76,6 +75,7 @@ set(HIGHLIGHT_FOCUSED_FRAME_DEBUG ON) set(HPET_COMPARATOR_DEBUG ON) set(HPET_DEBUG ON) set(HTML_SCRIPT_DEBUG ON) +set(HTTPJOB_DEBUG ON) set(HTTPSJOB_DEBUG ON) set(HUNKS_DEBUG ON) set(ICMP_DEBUG ON) diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp index 20d4a60d24..26c084c846 100644 --- a/Userland/Libraries/LibHTTP/HttpJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpJob.cpp @@ -17,22 +17,22 @@ void HttpJob::start(NonnullRefPtr<Core::Socket> socket) VERIFY(!m_socket); m_socket = move(socket); m_socket->on_error = [this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_error callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_error callback"); deferred_invoke([this] { did_fail(Core::NetworkJob::Error::ConnectionFailed); }); }; m_socket->set_idle(false); if (m_socket->is_connected()) { - dbgln_if(CHTTPJOB_DEBUG, "Reusing previous connection for {}", url()); + dbgln_if(HTTPJOB_DEBUG, "Reusing previous connection for {}", url()); deferred_invoke([this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }); } else { - dbgln_if(CHTTPJOB_DEBUG, "Creating new connection for {}", url()); + dbgln_if(HTTPJOB_DEBUG, "Creating new connection for {}", url()); m_socket->on_connected = [this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }; bool success = m_socket->connect(m_request.url().host(), m_request.url().port_or_default()); |