From 0071c4af7d347280fba22002f3257c5a993bc7cb Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 25 Nov 2008 00:09:14 +0000 Subject: [PATCH] Add support for graphics debug git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1301 42af7a65-404d-4744-a932-0658087f49c3 --- include/debug.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/debug.h b/include/debug.h index ae03c7e8fe..72769c7797 100644 --- a/include/debug.h +++ b/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