summaryrefslogtreecommitdiffstats
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-08-22 03:44:18 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-08-22 03:44:18 +0000
commitac4f2e0b66eeb13feebef2393f6d4e19012dfad2 (patch)
tree2bc95495f8037e2142f04533c6bd8ff6413a3c32 /nuttx/include/debug.h
parentfc1aa16d479e1eb4d010df64f008fc2fef325df0 (diff)
Fix demand-paging compilation errors
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2879 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index e3c6edc476..9da8984850 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)