summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 22:01:38 +0100
committerMartin Mares <mj@ucw.cz>2000-03-12 22:01:38 +0100
commit6b9fa320806ce8a734d865ebcb8052ba0e50c527 (patch)
tree29c22c36dd94eb3960fc6066ceac3a12bd1d3d46 /sysdep
parent6a9f28b0b9254ba21c36126d6f10388815840001 (diff)
downloadbird-6b9fa320806ce8a734d865ebcb8052ba0e50c527.tar
bird-6b9fa320806ce8a734d865ebcb8052ba0e50c527.zip
Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules,
several debug() calls converted to DBG().
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/main.c14
1 files changed, 8 insertions, 6 deletions
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 <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -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");