summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-23 15:30:51 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-23 16:46:26 +0100
commit1c1e577a5ef92770ed8103cf1f763b9024c49192 (patch)
tree1a61a6f38bf7eccb2e607df80b2296b65a821d18 /AK
parentd7345cf5608d9e2f9beeac7c5414a29bdd64a702 (diff)
downloadserenity-1c1e577a5ef92770ed8103cf1f763b9024c49192.zip
Everywhere: Deprecate dbg().
Diffstat (limited to 'AK')
-rw-r--r--AK/Debug.h12
-rw-r--r--AK/LogStream.cpp3
-rw-r--r--AK/LogStream.h2
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();