summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/mainloop.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 11:54:15 -0400
committerMasami Hiramatsu <mhiramat@redhat.com>2009-03-20 11:54:15 -0400
commitf0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3 (patch)
tree23e89323e440e216b7cb4bf359e1a2bda54edd40 /runtime/staprun/mainloop.c
parent0cf9ea606eb7677a1241595f7568dd4a6c243ef2 (diff)
downloadsystemtap-steved-f0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3.tar.gz
systemtap-steved-f0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3.tar.xz
systemtap-steved-f0b8d2671fa56e0e1dcb4cc09fd6f7edf70f8fa3.zip
PR6930: staprun: supports error message to syslog
Add an interface (eprintf) to output error messages to syslogd, because staprun has no stderr after detaching from console.
Diffstat (limited to 'runtime/staprun/mainloop.c')
-rw-r--r--runtime/staprun/mainloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c
index db6ef6b7..e91e6302 100644
--- a/runtime/staprun/mainloop.c
+++ b/runtime/staprun/mainloop.c
@@ -468,7 +468,7 @@ int stp_main_loop(void)
}
#endif
case STP_OOB_DATA:
- fputs((char *)data, stderr);
+ eprintf("%s", (char *)data);
break;
case STP_EXIT:
{