summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-24 16:27:35 +0000
committerhunt <hunt>2005-08-24 16:27:35 +0000
commit8140a0fdec3e8c131bdc1007d856acb8ae758abc (patch)
tree20d8df6455cfab7de2c21fff48ac480cccf83f23 /runtime/stpd/librelay.h
parentbc1ea08b028ee36a19538b144fa45f20b558008b (diff)
downloadsystemtap-steved-8140a0fdec3e8c131bdc1007d856acb8ae758abc.tar.gz
systemtap-steved-8140a0fdec3e8c131bdc1007d856acb8ae758abc.tar.xz
systemtap-steved-8140a0fdec3e8c131bdc1007d856acb8ae758abc.zip
2005-08-24 Martin Hunt <hunt@redhat.com>
* librelay.c (sigproc): Reestablish signal handler so impatient people don't hit ^C twice and terminate the program before it saves the data and removes the module. Also print a message to stderr that it is exiting. (stp_main_loop): Write OOB data (warnings, errors, etc) to stderr instead of stdout. * librelay.h: Write debug info to stderr. * Makefile: add librelay.h to dependencies.
Diffstat (limited to 'runtime/stpd/librelay.h')
-rw-r--r--runtime/stpd/librelay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stpd/librelay.h b/runtime/stpd/librelay.h
index 71150858..289952d7 100644
--- a/runtime/stpd/librelay.h
+++ b/runtime/stpd/librelay.h
@@ -1,7 +1,7 @@
#include "../transport/transport_msgs.h"
#ifdef DEBUG
-#define dbug(args...) {printf("%s:%d ",__FUNCTION__, __LINE__); printf(args); }
+#define dbug(args...) {fprintf(stderr,"%s:%d ",__FUNCTION__, __LINE__); fprintf(stderr,args); }
#else
#define dbug(args...) ;
#endif /* DEBUG */