From 3b971328035c179c41e6175a4feb3a5683588adf Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 1 Aug 2005 21:39:52 +0000 Subject: 2005-08-01 Martin Hunt * io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid. * print.c (_stp_print_flush): Don't need _stp_tport. *runtime.h (probe_start): Just call _stp_transport_init(). (probe_exit): Just call _stp_transport_close(). --- runtime/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/print.c') diff --git a/runtime/print.c b/runtime/print.c index aa8a520d..f340a3a1 100644 --- a/runtime/print.c +++ b/runtime/print.c @@ -45,7 +45,7 @@ void _stp_print_flush (void) if (len == 0) return; - ret =_stp_transport_write(_stp_tport, buf, len + 1); + ret =_stp_transport_write(buf, len + 1); if (unlikely(ret < 0)) atomic_inc (&_stp_transport_failures); @@ -85,7 +85,7 @@ void _stp_print_flush (void) seq = _stp_seq_inc(); scnprintf (buf, TIMESTAMP_SIZE, "%10d", seq); buf[TIMESTAMP_SIZE - 1] = ' '; - ret = _stp_transport_write(_stp_tport, buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1); + ret = _stp_transport_write(buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1); if (unlikely(ret < 0)) atomic_inc (&_stp_transport_failures); -- cgit