summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-19 11:11:51 +0000
committerhunt <hunt>2005-08-19 11:11:51 +0000
commit709a1d41d95438df305fa220cc32610f1bb6ea8e (patch)
tree5163f8b18b96c9163162c5e05ec85fc0aa0374e8 /runtime/io.c
parent65c919e2bd80361d6cf23f385f367c2a9689311f (diff)
downloadsystemtap-steved-709a1d41d95438df305fa220cc32610f1bb6ea8e.tar.gz
systemtap-steved-709a1d41d95438df305fa220cc32610f1bb6ea8e.tar.xz
systemtap-steved-709a1d41d95438df305fa220cc32610f1bb6ea8e.zip
2005-08-19 Martin Hunt <hunt@redhat.com>
* print.c: Change ifdefs to STP_RELAYFS. * runtime.h: Ditto. * io.c (_stp_vlog): Call _stp_write instead of _stp_ctrl_send. * Makefile: Don't build stp-control. * README.doc: Update. * TODO: Update.
Diffstat (limited to 'runtime/io.c')
-rw-r--r--runtime/io.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/io.c b/runtime/io.c
index 30e4687f..f4f042a8 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -55,18 +55,18 @@ static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va
}
buf[num + start] = '\0';
-#ifdef STP_NETLINK_ONLY
+#ifdef STP_RELAYFS
if (type != DBUG)
- _stp_ctrl_send(STP_REALTIME_DATA, buf, start + num + 1, _stp_pid);
+ _stp_write(STP_REALTIME_DATA, buf, start + num + 1);
+ _stp_string_cat_cstr(_stp_stdout,buf);
+ _stp_print_flush();
+#else
+ if (type != DBUG)
+ _stp_write(STP_REALTIME_DATA, buf, start + num + 1);
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();