summaryrefslogtreecommitdiffstats
path: root/runtime/print_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/print_new.c')
-rw-r--r--runtime/print_new.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/print_new.c b/runtime/print_new.c
index b6187978..2d5a6e10 100644
--- a/runtime/print_new.c
+++ b/runtime/print_new.c
@@ -92,7 +92,15 @@ void EXPORT_FN(stp_print_flush)(_stp_pbuf *pb)
}
}
#endif /* !NO_PERCPU_HEADERS */
+
#else /* !STP_BULKMODE */
+
+#if STP_TRANSPORT_VERSION == 1
+
+ if (unlikely(_stp_ctl_write(STP_REALTIME_DATA, pb->buf, len) <= 0))
+ atomic_inc (&_stp_transport_failures);
+
+#else /* STP_TRANSPORT_VERSION != 1 */
{
unsigned long flags;
char *bufp = pb->buf;
@@ -117,5 +125,6 @@ void EXPORT_FN(stp_print_flush)(_stp_pbuf *pb)
}
spin_unlock_irqrestore(&_stp_print_lock, flags);
}
+#endif /* STP_TRANSPORT_VERSION != 1 */
#endif /* !STP_BULKMODE */
}