summaryrefslogtreecommitdiff
path: root/nuttx/include/debug.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-12 23:54:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-12 23:54:26 +0000
commitc2079e368c183a100c549671925b66d6b993c8c2 (patch)
tree6e9e40c95947255b743c4a08926a407360d2a19c /nuttx/include/debug.h
parenta8d12f6d37d46732011e008ac8252c4a3183e182 (diff)
downloadnuttx-c2079e368c183a100c549671925b66d6b993c8c2.tar.gz
nuttx-c2079e368c183a100c549671925b66d6b993c8c2.tar.bz2
nuttx-c2079e368c183a100c549671925b66d6b993c8c2.zip
Add interface to enabled/disable debug output
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4386 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/debug.h')
-rw-r--r--nuttx/include/debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 5cfe1e601..c8666ff57 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -596,6 +596,12 @@ EXTERN int lib_lowprintf(FAR const char *format, ...);
EXTERN void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
unsigned int buflen);
+/* Enable or disable debug output */
+
+#ifdef CONFIG_DEBUG_ENABLE
+EXTERN void dbg_enable(bool enable);
+#endif
+
/* If the cross-compiler's pre-processor does not support variable
* length arguments, then these additional APIs will be built.
*/