summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-07-20 18:46:46 +0000
committerhunt <hunt>2005-07-20 18:46:46 +0000
commite9e09d08194e98a84f1e00ec9fcfaefa478abe47 (patch)
treee38323628ee4e93228dfd23c3f240c5411c0ae12
parent6d46e8cc91ae180342b80dae58d9f27fcc7790f6 (diff)
downloadsystemtap-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.
-rw-r--r--runtime/ChangeLog5
-rw-r--r--runtime/io.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 5f877448..e5050775 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-20 Martin Hunt <hunt@redhat.com>
+
+ * io.c (_stp_vlog): Don't count transport failures for
+ these messages.
+
2005-07-19 Martin Hunt <hunt@redhat.com>
* print.c (_stp_print_flush): Check return value and increment
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();