+2005-08-03 Tom Zanussi <trz@us.ibm.com>
+
+ * io.c (_stp_vlog): Remove call to _stp_print_flush().
+ * print.c (_stp_print_flush): _stp_warn() on first
+ transport failure.
+
2005-08-01 Martin Hunt <hunt@redhat.com>
* io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid.
buf[num + start] = '\0';
_stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
-#ifndef STP_NETLINK_ONLY
- _stp_string_cat_cstr(_stp_stdout,buf);
- _stp_print_flush();
-#endif
}
put_cpu();
}
return;
ret =_stp_transport_write(buf, len + 1);
- if (unlikely(ret < 0))
+ if (unlikely(ret < 0)) {
+ if (!atomic_read(&_stp_transport_failures))
+ _stp_warn("Transport failure - try using a larger buffer size\n");
atomic_inc (&_stp_transport_failures);
+ }
_stp_pbuf_len[cpu] = 0;
*buf = 0;
scnprintf (buf, TIMESTAMP_SIZE, "%10d", seq);
buf[TIMESTAMP_SIZE - 1] = ' ';
ret = _stp_transport_write(buf, _stp_pbuf_len[cpu] + TIMESTAMP_SIZE + 1);
- if (unlikely(ret < 0))
+ if (unlikely(ret < 0)) {
+ if (!atomic_read(&_stp_transport_failures))
+ _stp_warn("Transport failure - try using a larger buffer size\n");
atomic_inc (&_stp_transport_failures);
+ }
_stp_pbuf_len[cpu] = 0;
*ptr = 0;