From 6b9fa320806ce8a734d865ebcb8052ba0e50c527 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 12 Mar 2000 21:01:38 +0000 Subject: Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules, several debug() calls converted to DBG(). --- sysdep/unix/main.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sysdep') diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 5019a3d..58fffda 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -6,6 +6,8 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ +#define LOCAL_DEBUG + #include #include #include @@ -275,7 +277,7 @@ cli_init_unix(void) void async_shutdown(void) { - debug("Shutting down...\n"); + DBG("Shutting down...\n"); order_shutdown(); } @@ -293,21 +295,21 @@ sysdep_shutdown_done(void) static void handle_sighup(int sig) { - debug("Caught SIGHUP...\n"); + DBG("Caught SIGHUP...\n"); async_config_flag = 1; } static void handle_sigusr(int sig) { - debug("Caught SIGUSR...\n"); + DBG("Caught SIGUSR...\n"); async_dump_flag = 1; } static void handle_sigterm(int sig) { - debug("Caught SIGTERM...\n"); + DBG("Caught SIGTERM...\n"); async_shutdown_flag = 1; } @@ -392,7 +394,7 @@ main(int argc, char **argv) log(L_INFO "Launching BIRD " BIRD_VERSION "..."); - debug("Initializing.\n"); + DBG("Initializing.\n"); resource_init(); olock_init(); io_init(); @@ -412,7 +414,7 @@ main(int argc, char **argv) ev_run_list(&global_event_list); async_dump(); - debug("Entering I/O loop.\n"); + DBG("Entering I/O loop.\n"); io_loop(); bug("I/O loop died"); -- cgit v1.2.3