diff options
author | asynts <asynts@gmail.com> | 2021-01-23 15:30:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-23 16:46:26 +0100 |
commit | 1c1e577a5ef92770ed8103cf1f763b9024c49192 (patch) | |
tree | 1a61a6f38bf7eccb2e607df80b2296b65a821d18 /AK | |
parent | d7345cf5608d9e2f9beeac7c5414a29bdd64a702 (diff) | |
download | serenity-1c1e577a5ef92770ed8103cf1f763b9024c49192.zip |
Everywhere: Deprecate dbg().
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Debug.h | 12 | ||||
-rw-r--r-- | AK/LogStream.cpp | 3 | ||||
-rw-r--r-- | AK/LogStream.h | 2 |
3 files changed, 16 insertions, 1 deletions
diff --git a/AK/Debug.h b/AK/Debug.h index fa4297948a..5358103df1 100644 --- a/AK/Debug.h +++ b/AK/Debug.h @@ -573,3 +573,15 @@ constexpr bool debug_lock_restore = true; #else constexpr bool debug_lock_restore = false; #endif + +#ifdef FUTEXQUEUE_DEBUG +constexpr bool debug_futex_queue = true; +#else +constexpr bool debug_futex_queue = false; +#endif + +#ifdef FUTEX_DEBUG +constexpr bool debug_futex = true; +#else +constexpr bool debug_futex = false; +#endif diff --git a/AK/LogStream.cpp b/AK/LogStream.cpp index 416e3ce2b3..f5108f0b08 100644 --- a/AK/LogStream.cpp +++ b/AK/LogStream.cpp @@ -149,7 +149,10 @@ KernelLogStream klog() #else DebugLogStream klog() { +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" return dbg(); +# pragma GCC diagnostic pop } #endif diff --git a/AK/LogStream.h b/AK/LogStream.h index c5e80c97b9..9d6a0900bf 100644 --- a/AK/LogStream.h +++ b/AK/LogStream.h @@ -179,7 +179,7 @@ inline const LogStream& operator<<(const LogStream& stream, bool value) return stream << (value ? "true" : "false"); } -DebugLogStream dbg(); +[[deprecated("Plase use dbgln in AK/Format.h instead.")]] DebugLogStream dbg(); #ifdef KERNEL KernelLogStream klog(); |