summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-04 00:02:12 +0000
committerhunt <hunt>2005-08-04 00:02:12 +0000
commitac097ee0004070cfc1ee147885aefa06ab870f82 (patch)
tree7c248d704a5dd1e6aef8115cf3533f1011a1b331 /runtime/io.c
parent693885fca97ab04ff81f1303c1524d54606170b0 (diff)
downloadsystemtap-steved-ac097ee0004070cfc1ee147885aefa06ab870f82.tar.gz
systemtap-steved-ac097ee0004070cfc1ee147885aefa06ab870f82.tar.xz
systemtap-steved-ac097ee0004070cfc1ee147885aefa06ab870f82.zip
2005-08-03 Martin Hunt <hunt@redhat.com>
* io.c (_stp_vlog): Revert previous change for now. * print.c (_stp_print_flush): Ditto.
Diffstat (limited to 'runtime/io.c')
-rw-r--r--runtime/io.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/io.c b/runtime/io.c
index c4e3cf2c..30e4687f 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -55,7 +55,19 @@ static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va
}
buf[num + start] = '\0';
- _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
+#ifdef STP_NETLINK_ONLY
+ if (type != DBUG)
+ _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
+ else {
+ _stp_string_cat_cstr(_stp_stdout,buf);
+ _stp_print_flush();
+ }
+#else
+ if (type != DBUG)
+ _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
+ _stp_string_cat_cstr(_stp_stdout,buf);
+ _stp_print_flush();
+#endif
}
put_cpu();
}