diff options
author | Stan Cox <scox@redhat.com> | 2009-06-19 14:06:52 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-06-19 14:06:52 -0400 |
commit | d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2 (patch) | |
tree | 966ff2622c07fb84513b487482a1a1f46bae5dfc /runtime/debug.h | |
parent | 45148f5b5e371ff852dbbb08d83c5e87932b372e (diff) | |
parent | eba61c56888482553551a16ec651444a583522e0 (diff) | |
download | systemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.tar.gz systemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.tar.xz systemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.zip |
Merge branch 'master' of ssh://sourceware.org/git/systemtap
Diffstat (limited to 'runtime/debug.h')
-rw-r--r-- | runtime/debug.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/debug.h b/runtime/debug.h index e8b2e701..5c9cca74 100644 --- a/runtime/debug.h +++ b/runtime/debug.h @@ -14,7 +14,6 @@ * _dbug() writes to systemtap stderr. * errk() writes to the system log. */ -static int _stp_transport_state = 0; #define _dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args) @@ -39,8 +38,14 @@ static int _stp_transport_state = 0; printk(args); \ } \ } while (0) + +#define dbug_trans2(args...) do { \ + printk("%s:%d ",__FUNCTION__, __LINE__); \ + printk(args); \ + } while (0) #else #define dbug_trans(level, args...) ; +#define dbug_trans2(args...) ; #endif #ifdef DEBUG_UNWIND /* stack unwinder */ |