diff options
author | hunt <hunt> | 2005-05-17 08:02:30 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-05-17 08:02:30 +0000 |
commit | 43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f (patch) | |
tree | 89edd85aa491b4f9632d10705fcd68c04fc98db3 /runtime/io.c | |
parent | 30add090cbcbb6367c06c8bcc3c270e60c2f928e (diff) | |
download | systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.tar.gz systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.tar.xz systemtap-steved-43614f5d7e0d18f553c0ee2a4e195d7b8f63be1f.zip |
Rewritten maps and other updated files.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } /** @} */ |