]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules,
authorMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 21:01:38 +0000 (21:01 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 21:01:38 +0000 (21:01 +0000)
several debug() calls converted to DBG().

conf/conf.c
filter/filter.c
nest/iface.c
nest/neighbor.c
nest/proto.c
nest/rt-dev.c
nest/rt-fib.c
nest/rt-table.c
proto/pipe/pipe.c
proto/static/static.c
sysdep/unix/main.c

index bf586315182d25fc6fe31aed8045315de309b781..21413e50ed27f5e3fad7fd031c0d55a015bf4aba 100644 (file)
@@ -9,7 +9,7 @@
 #include <setjmp.h>
 #include <stdarg.h>
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "nest/route.h"
index 8fd0f78d5ca6cbe1ae7fd4eff2f7caf65067d04f..3bb21e682614af87203955a699fc181366419fca 100644 (file)
@@ -9,6 +9,8 @@
  *
  */
 
+#undef LOCAL_DEBUG
+
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -525,7 +527,7 @@ f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struc
 {
   struct f_inst *inst;
   struct f_val res;
-  debug( "Running filter `%s'...", filter->name );
+  DBG( "Running filter `%s'...", filter->name );
 
   f_tmp_attrs = tmp_attrs;
   f_rte = rte;
@@ -535,7 +537,7 @@ f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struc
   res = interpret(inst);
   if (res.type != T_RETURN)
     return F_ERROR;
-  debug( "done (%d)\n", res.val.i );
+  DBG( "done (%d)\n", res.val.i );
   return res.val.i;
 }
 
index cf91833b7eb6ffed920dbe59a58fdf9e512cc115..0ba6bef9a08cd9269cfbf21ff0f30fdf4ba8bda1 100644 (file)
@@ -426,7 +426,7 @@ auto_router_id(void)
       j = i;
   if (!j)
     die("Cannot determine router ID (no suitable network interface found), please configure it manually");
-  log(L_INFO, "Guessed router ID %I according to interface %s", j->addr->ip, j->name);
+  log(L_INFO "Guessed router ID %I according to interface %s", j->addr->ip, j->name);
   config->router_id = ipa_to_u32(j->addr->ip);
 #endif
 }
index e9be8658c375b8db82e7084d7cacff47a376eb08..c4328b6cf98ad2683d3bfcb2ed0113cf431ffe03 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "nest/iface.h"
index f137aa507b1a2a5629881b9d8f5692595f404b9d..7243fcd55ceee4e744a6f74b455eccabaa9def48 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <string.h>
 
@@ -157,15 +157,15 @@ protos_preconfig(struct config *c)
   struct protocol *p;
 
   init_list(&c->protos);
-  debug("Protocol preconfig:");
+  DBG("Protocol preconfig:");
   WALK_LIST(p, protocol_list)
     {
-      debug(" %s", p->name);
+      DBG(" %s", p->name);
       p->name_counter = 0;
       if (p->preconfig)
        p->preconfig(p, c);
     }
-  debug("\n");
+  DBG("\n");
 }
 
 void
@@ -174,15 +174,15 @@ protos_postconfig(struct config *c)
   struct proto_config *x;
   struct protocol *p;
 
-  debug("Protocol postconfig:");
+  DBG("Protocol postconfig:");
   WALK_LIST(x, c->protos)
     {
-      debug(" %s", x->name);
+      DBG(" %s", x->name);
       p = x->protocol;
       if (p->postconfig)
        p->postconfig(x);
     }
-  debug("\n");
+  DBG("\n");
 }
 
 static struct proto *
index edadeba5c9ce04ecbce2cb8b3a2433aa8312842f..d42ed157ca0465f13560ab99a49139081489e1f4 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <string.h>
 
@@ -35,7 +35,7 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
       n = net_find(p->table, ad->prefix, ad->pxlen);
       if (!n)
        {
-         debug("dev_if_notify: device shutdown: prefix not found\n");
+         DBG("dev_if_notify: device shutdown: prefix not found\n");
          return;
        }
       rte_update(p->table, n, p, NULL);
@@ -46,7 +46,7 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
       net *n;
       rte *e;
 
-      debug("dev_if_notify: %s:%I going up\n", ad->iface->name, ad->ip);
+      DBG("dev_if_notify: %s:%I going up\n", ad->iface->name, ad->ip);
       bzero(&A, sizeof(A));
       A.proto = p;
       A.source = RTS_DEVICE;
index efc2cd8ecb2a58bb79987fd1c3605bebb1f88d27..4d898763d58e6528d97aa4d0f8a0f514822d7656 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <string.h>
 
index 7d992aa7fca088694f9d4973443cc5f58b5952a9..f255a05eae976818d2e2525b3dea03c516f1c2eb 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <string.h>
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "nest/route.h"
@@ -196,7 +196,7 @@ rt_feed_baby(struct proto *p)
 
   if (!p->ahooks)
     return;
-  debug("Announcing routes to new protocol %s\n", p->name);
+  DBG("Announcing routes to new protocol %s\n", p->name);
   for(h=p->ahooks; h; h=h->next)
     {
       rtable *t = h->table;
index f1a190f904d8b1b104427e11826706d675ded53d..dde2ee7c7e5b7ffa01c464f7e9776fac6e91c203 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "nest/iface.h"
index afd3a10c2841ad9e6f53e8cba19f07eb420ee2bd..1aee2c7be19143b60660b1edff2beb1c1e9492fd 100644 (file)
@@ -6,7 +6,7 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <string.h>
 
index 5019a3d50876c609478e51fd11a31f09cd2a5f15..58fffda455b9cecb662c022889230421b69fd508 100644 (file)
@@ -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");