diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-22 03:44:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-22 03:44:18 +0000 |
commit | 9e91dba9e4c647edef9d745af68321436007b4f5 (patch) | |
tree | 2bc95495f8037e2142f04533c6bd8ff6413a3c32 /nuttx/include/debug.h | |
parent | 93362e94215a997b3dd1323cba42ea40d3483575 (diff) | |
download | px4-nuttx-9e91dba9e4c647edef9d745af68321436007b4f5.tar.gz px4-nuttx-9e91dba9e4c647edef9d745af68321436007b4f5.tar.bz2 px4-nuttx-9e91dba9e4c647edef9d745af68321436007b4f5.zip |
Fix demand-paging compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2879 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r-- | nuttx/include/debug.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index e3c6edc47..9da898485 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/debug.h * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -164,6 +164,18 @@ # define sllvdbg(x...) #endif +#ifdef CONFIG_DEBUG_PAGING +# define pgdbg(format, arg...) dbg(format, ##arg) +# define pglldbg(format, arg...) lldbg(format, ##arg) +# define pgvdbg(format, arg...) vdbg(format, ##arg) +# define pgllvdbg(format, arg...) llvdbg(format, ##arg) +#else +# define pgdbg(x...) +# define pglldbg(x...) +# define pgvdbg(x...) +# define pgllvdbg(x...) +#endif + #ifdef CONFIG_DEBUG_DMA # define dmadbg(format, arg...) dbg(format, ##arg) # define dmalldbg(format, arg...) lldbg(format, ##arg) @@ -297,6 +309,18 @@ # define sllvdbg (void) #endif +#ifdef CONFIG_DEBUG_PAGING +# define pgdbg dbg +# define pglldbg lldbg +# define pgvdbg vdbg +# define pgllvdbg llvdbg +#else +# define pgdbg (void) +# define pglldbg (void) +# define pgvdbg (void) +# define pgllvdbg (void) +#endif + #ifdef CONFIG_DEBUG_DMA # define dmadbg dbg # define dmalldbg lldbg @@ -415,6 +439,14 @@ # define svdbgdumpbuffer(m,b,n) #endif +#ifdef CONFIG_DEBUG_PAGING +# define pgdbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n) +# define pgvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n) +#else +# define pgdbgdumpbuffer(m,b,n) +# define pgvdbgdumpbuffer(m,b,n) +#endif + #ifdef CONFIG_DEBUG_DMA # define dmadbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n) # define dmavdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n) |