From e5d2abb56ca57a613e4ef9398a6499190b2265be Mon Sep 17 00:00:00 2001 From: hunt Date: Sat, 18 Jun 2005 07:24:42 +0000 Subject: 2005-06-18 Martin Hunt * counter.c: New file. Counter aggregations. * stat.c: New file. Stat aggregations. * stat.h: Header file for stats. * map-int.c: New file. Support for int64 values. * map-stat.c: New file. Support for stat values. * map-str.c: New file. Support for string values. * map-values.c: Now just includes the necessary map-*.c files. * stat-common.c: New file. Stats stuff common to Stats and maps containing stats. * Doxyfile: Bumped version to 0.6. * README: Renamed README.doc and reorganized. --- runtime/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/io.c') diff --git a/runtime/io.c b/runtime/io.c index 7c8c5ac0..bc691ebf 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -2,7 +2,6 @@ #define _IO_C_ #include "transport/transport.c" -#include "print.c" /** @file io.c * @brief I/O functions @@ -28,7 +27,7 @@ static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1]; void _stp_log (const char *fmt, ...) { int num, ret; - char *buf = &_stp_lbuf[smp_processor_id()][0]; + char *buf = &_stp_lbuf[get_cpu()][0]; va_list args; va_start(args, fmt); num = vscnprintf (buf, STP_LOG_BUF_LEN, fmt, args); @@ -38,6 +37,7 @@ void _stp_log (const char *fmt, ...) ret = _stp_ctrl_send(STP_REALTIME_DATA, buf, num + 1, t->pid); if (ret < 0) atomic_inc (&_stp_transport_failures); + put_cpu(); } /** @} */ -- cgit