summaryrefslogtreecommitdiffstats
path: root/include/sys/debug.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-31 20:42:36 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-31 20:42:36 +0000
commit8d0f1ee907d425e71e34e1aea9c1b5465f8cd4d1 (patch)
tree2485257786b0d5cd9b54abebf314e4f0966ab7e1 /include/sys/debug.h
parente487ee08fb0bf55ac20f9d0779f602b5b543b3bf (diff)
Add some crude debugging support. It leaves alot to be
desired, but it should allow more easy kernel debugging for now. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@59 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/debug.h')
-rw-r--r--include/sys/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h
index 02f64c2cf..4a6ed5c3d 100644
--- a/include/sys/debug.h
+++ b/include/sys/debug.h
@@ -1,4 +1,11 @@
#ifndef _SPL_DEBUG_H
#define _SPL_DEBUG_H
+extern unsigned long spl_debug_mask;
+extern unsigned long spl_debug_subsys;
+
+void __dprintf(const char *file, const char *func, int line, const char *fmt, ...);
+void spl_set_debug_mask(unsigned long mask);
+void spl_set_debug_subsys(unsigned long mask);
+
#endif /* SPL_DEBUG_H */