From 7748916e6a66a586ae999b811a8ebb608120805e Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 10 Sep 2019 17:32:30 -0400 Subject: libtrace cleanup --- src/libtrace/libtrace.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/libtrace') diff --git a/src/libtrace/libtrace.c b/src/libtrace/libtrace.c index 745dd2260..11e98d95e 100644 --- a/src/libtrace/libtrace.c +++ b/src/libtrace/libtrace.c @@ -50,10 +50,7 @@ static orig_fopen64_t orig_fopen64 = NULL; // // library constructor/destructor // -// Replacing printf with fprintf to /dev/tty in order to fix #561 -// If you really want to turn it off, comment the following line, but its a -// really bad idea. -#define PRINTF_DEVTTY +// Using fprintf to /dev/tty instead of printf in order to fix #561 static FILE *ftty = NULL; static pid_t mypid = 0; #define MAXNAME 16 @@ -67,11 +64,7 @@ void init(void) { orig_fopen = (orig_fopen_t)dlsym(RTLD_NEXT, "fopen"); // tty -#ifdef PRINTF_DEVTTY ftty = orig_fopen("/dev/tty", "w"); -#else - ftty = stderr; -#endif tprintf(ftty, "=== tracelib init() === \n"); // pid -- cgit v1.2.3-54-g00ecf