summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 70ae2ee18..97b7ed798 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -284,6 +284,18 @@
# define lllvdbg(x...)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbg(format, arg...) dbg(format, ##arg)
+# define audlldbg(format, arg...) lldbg(format, ##arg)
+# define audvdbg(format, arg...) vdbg(format, ##arg)
+# define audllvdbg(format, arg...) llvdbg(format, ##arg)
+#else
+# define auddbg(x...)
+# define audlldbg(x...)
+# define audvdbg(x...)
+# define audllvdbg(x...)
+#endif
+
#else /* CONFIG_CPP_HAVE_VARARGS */
/* Variable argument macros NOT supported */
@@ -453,6 +465,18 @@
# define lllvdbg (void)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbg dbg
+# define audlldbg lldbg
+# define audvdbg vdbg
+# define audllvdbg llvdbg
+#else
+# define auddbg (void)
+# define audlldbg (void)
+# define audvdbg (void)
+# define audllvdbg (void)
+#endif
+
#endif /* CONFIG_CPP_HAVE_VARARGS */
/* Buffer dumping macros do not depend on varargs */
@@ -559,6 +583,14 @@
# define lvdbgdumpbuffer(m,b,n)
#endif
+#ifdef CONFIG_DEBUG_AUDIO
+# define auddbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n)
+# define audvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n)
+#else
+# define auddbgdumpbuffer(m,b,n)
+# define audvdbgdumpbuffer(m,b,n)
+#endif
+
/****************************************************************************
* Public Type Declarations
****************************************************************************/