diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-25 00:09:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-25 00:09:14 +0000 |
commit | 4ada8684b1f22cfa5e5d12fcf44232f49496b5b2 (patch) | |
tree | d0f9855eaf6d8c22aaa9be4c7d2eac2fe7cf30e2 | |
parent | a561b4bf21d17a22fc93b738ec2de3f514e4f4d6 (diff) | |
download | px4-nuttx-4ada8684b1f22cfa5e5d12fcf44232f49496b5b2.tar.gz px4-nuttx-4ada8684b1f22cfa5e5d12fcf44232f49496b5b2.tar.bz2 px4-nuttx-4ada8684b1f22cfa5e5d12fcf44232f49496b5b2.zip |
Add support for graphics debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1301 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/include/debug.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index ae03c7e8f..72769c779 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -163,6 +163,18 @@ # define fllvdbg(x...) #endif +#ifdef CONFIG_DEBUG_GRAPHICS +# define gdbg(format, arg...) dbg(format, ##arg) +# define glldbg(format, arg...) lldbg(format, ##arg) +# define gvdbg(format, arg...) vdbg(format, ##arg) +# define gllvdbg(format, arg...) llvdbg(format, ##arg) +#else +# define gdbg(x...) +# define glldbg(x...) +# define gvdbg(x...) +# define gllvdbg(x...) +#endif + #ifdef CONFIG_DEBUG_LIB # define ldbg(format, arg...) dbg(format, ##arg) # define llldbg(format, arg...) lldbg(format, ##arg) @@ -258,6 +270,18 @@ # define fllvdbg (void) #endif +#ifdef CONFIG_DEBUG_GRAPHICS +# define gdbg dbg +# define glldbg lldbg +# define gvdbg vdbg +# define gllvdbg llvdbg +#else +# define gdbg (void) +# define glldbg (void) +# define gvdbg (void) +# define gllvdbg (void) +#endif + #ifdef CONFIG_DEBUG_LIB # define ldbg dbg # define llldbg lldbg |