diff options
author | David Smith <dsmith@redhat.com> | 2009-06-03 15:20:46 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-06-03 15:20:46 -0500 |
commit | af274e5bd4593fa79c0489e0b6105f4bd23310c8 (patch) | |
tree | ce4288471c22a92065450639f21d3facb0c86e4a /runtime/debug.h | |
parent | 01adca5bca8d61e3fdf09017496deec8859fe12d (diff) | |
download | systemtap-steved-af274e5bd4593fa79c0489e0b6105f4bd23310c8.tar.gz systemtap-steved-af274e5bd4593fa79c0489e0b6105f4bd23310c8.tar.xz systemtap-steved-af274e5bd4593fa79c0489e0b6105f4bd23310c8.zip |
Make sure all DEBUG_TRANS output uses printk.
* runtime/transport/control.c (_stp_ctl_write_cmd): Calls dbug_trans2
instead of _dbug (so that printk is used instead of the transport
itself).
(_stp_ctl_write_dbug): Ditto.
* runtime/debug.h (dbug_trans2): New macro.
Diffstat (limited to 'runtime/debug.h')
-rw-r--r-- | runtime/debug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/debug.h b/runtime/debug.h index ce0c3943..5c9cca74 100644 --- a/runtime/debug.h +++ b/runtime/debug.h @@ -38,8 +38,14 @@ 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 */ |