summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-22 19:12:38 +0000
committerhunt <hunt>2005-08-22 19:12:38 +0000
commite718a34db01f32bd7a6ca01001546daa1f3b5fc7 (patch)
treee476ab14fa70941d3987a57c552f1d27c2dbb69e /runtime/runtime.h
parentead91d6b33ae904420606821b2d0d695de98f4ff (diff)
downloadsystemtap-steved-e718a34db01f32bd7a6ca01001546daa1f3b5fc7.tar.gz
systemtap-steved-e718a34db01f32bd7a6ca01001546daa1f3b5fc7.tar.xz
systemtap-steved-e718a34db01f32bd7a6ca01001546daa1f3b5fc7.zip
2005-08-22 Martin Hunt <hunt@redhat.com>
* runtime.h (kbug): New dbug macros that calls printk.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 88ccc196..1df196de 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -37,8 +37,10 @@
* @ingroup io
*/
#define dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args)
+#define kbug(args...) {printk("%s:%d ",__FUNCTION__, __LINE__); printk(args); }
#else
#define dbug(args...) ;
+#define kbug(args...) ;
#endif /* DEBUG */
/* atomic globals */