From e9e09d08194e98a84f1e00ec9fcfaefa478abe47 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 20 Jul 2005 18:46:46 +0000 Subject: [PATCH] 2005-07-20 Martin Hunt * io.c (_stp_vlog): Don't count transport failures for these messages. --- runtime/ChangeLog | 5 +++++ runtime/io.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 5f8774486..e50507758 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2005-07-20 Martin Hunt + + * io.c (_stp_vlog): Don't count transport failures for + these messages. + 2005-07-19 Martin Hunt * print.c (_stp_print_flush): Check return value and increment diff --git a/runtime/io.c b/runtime/io.c index 4015de341..a8cb4e439 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(); -- 2.43.5