summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-24 13:59:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-24 13:59:57 +0000
commitb4c624a2a52f28442a1ceab080d491d83f3b7731 (patch)
treea72b1e5b8dac00117d4a07c86d6c10e163f2b39e /nuttx/include/debug.h
parentb1ba6835d554382c77a216a3f2eb3fa7ded96535 (diff)
downloadpx4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.tar.gz
px4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.tar.bz2
px4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.zip
fs/ and lib/ debug can be selectively enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@406 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 38ec57ba2..651b2cbe8 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -112,6 +112,26 @@
# define nvdbg(x...)
#endif
+#ifdef CONFIG_DEBUG_FS
+# define fdbg(format, arg...) dbg(format, ##arg)
+# define flldbg(format, arg...) lldbg(format, ##arg)
+# define fvdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define fdbg(x...)
+# define flldbg(x...)
+# define fvdbg(x...)
+#endif
+
+#ifdef CONFIG_DEBUG_LIB
+# define ldbg(format, arg...) dbg(format, ##arg)
+# define llldbg(format, arg...) lldbg(format, ##arg)
+# define lvdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define ldbg(x...)
+# define llldbg(x...)
+# define lvdbg(x...)
+#endif
+
/************************************************************
* Public Type Declarations
************************************************************/