diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-11-23 22:32:52 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-11-23 22:32:52 +0000 |
commit | aacec419a1a5cf8c2de8d8b1cd0eab511d6c55d1 (patch) | |
tree | 4c931c8603e4c674f6eec802044b430a953536db /nuttx/include/debug.h | |
parent | d1fbff3aafd0f2ee0ccc8a9315c6f39a57f74277 (diff) |
Debug can now be selectively enabled by subystem
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@404 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r-- | nuttx/include/debug.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index 2055fb9db6..38ec57ba21 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 ************************************************************/ |