From: hunt Date: Mon, 22 Aug 2005 19:12:38 +0000 (+0000) Subject: 2005-08-22 Martin Hunt X-Git-Tag: release-0.3~35 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e718a34db01f32bd7a6ca01001546daa1f3b5fc7;p=systemtap.git 2005-08-22 Martin Hunt * runtime.h (kbug): New dbug macros that calls printk. --- diff --git a/runtime/ChangeLog b/runtime/ChangeLog index b9c921408..89df15b41 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2005-08-22 Martin Hunt + + * runtime.h (kbug): New dbug macros that calls printk. + 2005-08-21 Frank Ch. Eigler * arith.c (*): Adapt to last_error context variable. diff --git a/runtime/runtime.h b/runtime/runtime.h index 88ccc1963..1df196de0 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 */