summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-28 17:15:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-28 17:15:17 +0000
commit12661a30ccbf3f21b47a03b3bc1571cf437c8687 (patch)
tree01d2443084f1e698166c221b46d8f770a3ae5435 /nuttx/include/debug.h
parent70c11ed7cbd8c0de81e46e47d35ba72ca52716fc (diff)
downloadpx4-nuttx-12661a30ccbf3f21b47a03b3bc1571cf437c8687.tar.gz
px4-nuttx-12661a30ccbf3f21b47a03b3bc1571cf437c8687.tar.bz2
px4-nuttx-12661a30ccbf3f21b47a03b3bc1571cf437c8687.zip
Preparing USB environment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@957 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 c76c57313..c07eb97cc 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -123,6 +123,16 @@
# define nvdbg(x...)
#endif
+#ifdef CONFIG_DEBUG_USB
+# define udbg(format, arg...) dbg(format, ##arg)
+# define ulldbg(format, arg...) lldbg(format, ##arg)
+# define uvdbg(format, arg...) vdbg(format, ##arg)
+#else
+# define udbg(x...)
+# define ulldbg(x...)
+# define uvdbg(x...)
+#endif
+
#ifdef CONFIG_DEBUG_FS
# define fdbg(format, arg...) dbg(format, ##arg)
# define flldbg(format, arg...) lldbg(format, ##arg)
@@ -192,6 +202,16 @@
# define nvdbg (void)
#endif
+#ifdef CONFIG_DEBUG_USB
+# define udbg dbg
+# define ulldbg lldbg
+# define uvdbg vdbg
+#else
+# define udbg (void)
+# define ulldbg (void)
+# define uvdbg (void)
+#endif
+
#ifdef CONFIG_DEBUG_FS
# define fdbg dbg
# define flldbg lldbg