diff options
author | Nico Weber <thakis@chromium.org> | 2022-01-22 19:40:33 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 00:45:22 +0000 |
commit | fd7de68d07bd2db47a6574e121814fe43e0f009c (patch) | |
tree | 0c41ffb321433d28d99dbffaa1f72548bae0db4e | |
parent | a17b2248f2226f266ead4c5672a42c4d0d7715f9 (diff) | |
download | serenity-fd7de68d07bd2db47a6574e121814fe43e0f009c.zip |
LibHTTP+AK: Rename CNETWORKJOB_DEBUG to NETWORKJOB_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/LibCore/NetworkJob.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/AK/Debug.h.in b/AK/Debug.h.in index 0f0e22479f..e34fb6c0fb 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -26,10 +26,6 @@ #cmakedefine01 CALLBACK_MACHINE_DEBUG #endif -#ifndef CNETWORKJOB_DEBUG -#cmakedefine01 CNETWORKJOB_DEBUG -#endif - #ifndef COMPOSE_DEBUG #cmakedefine01 COMPOSE_DEBUG #endif @@ -302,6 +298,10 @@ #cmakedefine01 MOVE_DEBUG #endif +#ifndef NETWORKJOB_DEBUG +#cmakedefine01 NETWORKJOB_DEBUG +#endif + #ifndef NT_DEBUG #cmakedefine01 NT_DEBUG #endif diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index f3589c4c22..abb8b61613 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(CNETWORKJOB_DEBUG ON) set(COMMIT_DEBUG ON) set(COMPOSE_DEBUG ON) set(CONTEXT_SWITCH_DEBUG ON) @@ -123,6 +122,7 @@ set(MOUSE_DEBUG ON) set(MOVE_DEBUG ON) set(MULTIPROCESSOR_DEBUG ON) set(NE2000_DEBUG ON) +set(NETWORKJOB_DEBUG ON) set(NETWORK_TASK_DEBUG ON) set(NT_DEBUG ON) set(NVME_DEBUG ON) diff --git a/Userland/Libraries/LibCore/NetworkJob.cpp b/Userland/Libraries/LibCore/NetworkJob.cpp index 5742955281..4dcc927ca0 100644 --- a/Userland/Libraries/LibCore/NetworkJob.cpp +++ b/Userland/Libraries/LibCore/NetworkJob.cpp @@ -37,7 +37,7 @@ void NetworkJob::did_finish(NonnullRefPtr<NetworkResponse>&& response) NonnullRefPtr<NetworkJob> protector(*this); m_response = move(response); - dbgln_if(CNETWORKJOB_DEBUG, "{} job did_finish", *this); + dbgln_if(NETWORKJOB_DEBUG, "{} job did_finish", *this); VERIFY(on_finish); on_finish(true); shutdown(ShutdownMode::DetachFromSocket); @@ -53,7 +53,7 @@ void NetworkJob::did_fail(Error error) NonnullRefPtr<NetworkJob> protector(*this); m_error = error; - dbgln_if(CNETWORKJOB_DEBUG, "{}{{{:p}}} job did_fail! error: {} ({})", class_name(), this, (unsigned)error, to_string(error)); + dbgln_if(NETWORKJOB_DEBUG, "{}{{{:p}}} job did_fail! error: {} ({})", class_name(), this, (unsigned)error, to_string(error)); VERIFY(on_finish); on_finish(false); shutdown(ShutdownMode::DetachFromSocket); |