From b4c624a2a52f28442a1ceab080d491d83f3b7731 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 24 Nov 2007 13:59:57 +0000 Subject: 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 --- nuttx/include/debug.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nuttx/include/debug.h') 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 ************************************************************/ -- cgit v1.2.3