summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-13 07:28:12 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-13 07:28:12 -0800
commit59749d048d9e452f049f9151735b5256756919c3 (patch)
tree9b0935c93a3b028fd1dd35a2c632510743e7826f /debug.h
downloadltrace-59749d048d9e452f049f9151735b5256756919c3.tar.gz
ltrace-59749d048d9e452f049f9151735b5256756919c3.tar.bz2
ltrace-59749d048d9e452f049f9151735b5256756919c3.zip
Imported Upstream version 0.5.3upstream/0.5.3
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/debug.h b/debug.h
new file mode 100644
index 0000000..653da84
--- /dev/null
+++ b/debug.h
@@ -0,0 +1,17 @@
+#include <features.h>
+
+/* debug levels:
+ */
+enum {
+ DEBUG_EVENT = 010,
+ DEBUG_PROCESS = 020,
+ DEBUG_FUNCTION = 040
+};
+
+void debug_(int level, const char *file, int line,
+ const char *fmt, ...) __attribute__((format(printf,4,5)));
+
+int xinfdump(long, void *, int);
+
+# define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr)
+