diff --git a/AK/Debug.h.in b/AK/Debug.h.in index 0f0e22479f5..e34fb6c0fb2 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 f3589c4c226..abb8b61613c 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 57429552815..4dcc927ca08 100644 --- a/Userland/Libraries/LibCore/NetworkJob.cpp +++ b/Userland/Libraries/LibCore/NetworkJob.cpp @@ -37,7 +37,7 @@ void NetworkJob::did_finish(NonnullRefPtr&& response) NonnullRefPtr 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 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);