diff options
author | hunt <hunt> | 2005-07-20 18:46:46 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-07-20 18:46:46 +0000 |
commit | e9e09d08194e98a84f1e00ec9fcfaefa478abe47 (patch) | |
tree | e38323628ee4e93228dfd23c3f240c5411c0ae12 /runtime/io.c | |
parent | 6d46e8cc91ae180342b80dae58d9f27fcc7790f6 (diff) | |
download | systemtap-steved-e9e09d08194e98a84f1e00ec9fcfaefa478abe47.tar.gz systemtap-steved-e9e09d08194e98a84f1e00ec9fcfaefa478abe47.tar.xz systemtap-steved-e9e09d08194e98a84f1e00ec9fcfaefa478abe47.zip |
2005-07-20 Martin Hunt <hunt@redhat.com>
* io.c (_stp_vlog): Don't count transport failures for
these messages.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/io.c b/runtime/io.c index 4015de34..a8cb4e43 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -33,7 +33,7 @@ enum code { INFO=0, WARN, ERROR, DBUG }; static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va_list args) { - int num, ret; + int num; char *buf = &_stp_lbuf[get_cpu()][0]; int start = 0; @@ -55,9 +55,7 @@ static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va } buf[num + start] = '\0'; - ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_tport->pid); - if (ret < 0) - atomic_inc(&_stp_transport_failures); + _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_tport->pid); #ifndef STP_NETLINK_ONLY _stp_string_cat_cstr(_stp_stdout,buf); _stp_print_flush(); |