From 43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 17 May 2005 08:02:30 +0000 Subject: Rewritten maps and other updated files. --- runtime/io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/io.c') diff --git a/runtime/io.c b/runtime/io.c index effa750c..7c8c5ac0 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -27,7 +27,7 @@ static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1]; void _stp_log (const char *fmt, ...) { - int num; + int num, ret; char *buf = &_stp_lbuf[smp_processor_id()][0]; va_list args; va_start(args, fmt); @@ -35,7 +35,9 @@ void _stp_log (const char *fmt, ...) va_end(args); buf[num] = '\0'; - _stp_ctrl_send(STP_REALTIME_DATA, buf, num + 1, t->pid); + ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, num + 1, t->pid); + if (ret < 0) + atomic_inc (&_stp_transport_failures); } /** @} */ -- cgit