diff options
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r-- | nuttx/include/debug.h | 20 |
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 |