summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-23 22:32:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-23 22:32:52 +0000
commit2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3 (patch)
tree4c931c8603e4c674f6eec802044b430a953536db /nuttx/include/debug.h
parentfa64306fac12fed8522ab0facdb2cd7f211b2d30 (diff)
downloadnuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.gz
nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.bz2
nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.zip
Debug can now be selectively enabled by subystem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@404 42af7a65-404d-4744-a932-0658087f49c3
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 2055fb9db..38ec57ba2 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -80,6 +80,38 @@
# define vdbg(x...)
#endif
+/* Subsystem specific debug */
+
+#ifdef CONFIG_DEBUG_MM
+# define mdbg(format, arg...) dbg(format, ##arg)
+# define mlldbg(format, arg...) lldbg(format, ##arg)
+# define mvdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define mdbg(x...)
+# define mlldbg(x...)
+# define mvdbg(x...)
+#endif
+
+#ifdef CONFIG_DEBUG_SCHED
+# define sdbg(format, arg...) dbg(format, ##arg)
+# define slldbg(format, arg...) lldbg(format, ##arg)
+# define svdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define sdbg(x...)
+# define slldbg(x...)
+# define svdbg(x...)
+#endif
+
+#ifdef CONFIG_DEBUG_NET
+# define ndbg(format, arg...) dbg(format, ##arg)
+# define nlldbg(format, arg...) lldbg(format, ##arg)
+# define nvdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define ndbg(x...)
+# define nlldbg(x...)
+# define nvdbg(x...)
+#endif
+
/************************************************************
* Public Type Declarations
************************************************************/