diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-29 21:55:14 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-29 21:55:14 +0000 |
commit | 9ff5737ec53cca2ba295b58fb74a8b97f496cd19 (patch) | |
tree | 4bd8c279eda1fac647cfb1e99abcdea8c3963d5b /lib/events_libevent.c | |
parent | b6a2373c2c9a98594a87c54a4644f3c0e985e420 (diff) |
printf() in daemons considered harmful.
Diffstat (limited to 'lib/events_libevent.c')
-rw-r--r-- | lib/events_libevent.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/events_libevent.c b/lib/events_libevent.c index d02ad6a6..d3403152 100644 --- a/lib/events_libevent.c +++ b/lib/events_libevent.c @@ -31,13 +31,11 @@ #include <string.h> #include <unistd.h> #include <sys/types.h> -#include "proxy.h" - #include <sys/time.h> #include <event.h> +#include "proxy.h" static void b_main_restart(); - static guint id_next = 1; static GHashTable *id_hash; static int quitting = 0; @@ -92,7 +90,7 @@ void b_main_run() old_leh = NULL; } - printf( "New event loop.\n" ); + event_debug( "New event loop.\n" ); } } @@ -103,7 +101,7 @@ static void b_main_restart() memset( &tv, 0, sizeof( struct timeval ) ); event_base_loopexit( leh, &tv ); - printf( "b_main_restart()\n" ); + event_debug( "b_main_restart()\n" ); } void b_main_quit() |