]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
#ifdef out lots of debugging information.
authorMartin Mares <mj@ucw.cz>
Thu, 4 May 2000 20:52:28 +0000 (20:52 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 4 May 2000 20:52:28 +0000 (20:52 +0000)
The long resource/routing table dump printed upon startup is gone now
and if you wish to see it, just send bird SIGUSR1 or use the `debug'
commands.

filter/filter.c
nest/iface.c
proto/ospf/ospf.c
proto/rip/rip.c
sysdep/linux/netlink/netlink.c
sysdep/unix/main.c

index f70474ad4428dccdecc45f325d4ce6fab9348dff..5e848d6acac444949c9b2150e43bf1ed9c8256bb 100644 (file)
@@ -26,7 +26,7 @@
  * operation (okay too).
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "lib/lists.h"
index c585a531eb203cbaa5300815c61646569f16f9f2..16961bfaacf0e2d3873eddd0b00129b5c77933df 100644 (file)
@@ -152,7 +152,9 @@ if_notify_change(unsigned c, struct iface *i)
     }
 
   DBG("Interface change notification (%x) for %s\n", c, i->name);
+#ifdef LOCAL_DEBUG
   if_dump(i);
+#endif
 
   if (c & IF_CHANGE_UP)
     neigh_if_up(i);
index 860714e1f41b9a140bfef7a3424e76a39ba87db4..ef9c576be7fdeae3d8c2dce34993bcd91359fc4b 100644 (file)
@@ -69,12 +69,6 @@ ospf_init(struct proto_config *c)
   return p;
 }
 
-static void
-ospf_preconfig(struct protocol *p, struct config *c)
-{
-  DBG( " OSPF: preconfig\n" );
-}
-
 static void
 ospf_postconfig(struct proto_config *c)
 {
@@ -87,7 +81,5 @@ struct protocol proto_ospf = {
   init:                ospf_init,
   dump:                ospf_dump,
   start:       ospf_start,
-  preconfig:   ospf_preconfig,
   postconfig:  ospf_postconfig,
 };
-
index 0a1bdbc644f189fe768395e34233905abdb27d06..022d499fb1fcfe52349982ebc8896de37e1bff66 100644 (file)
@@ -839,12 +839,6 @@ rip_init_config(struct rip_proto_config *c)
   c->authtype  = AT_NONE;
 }
 
-static void
-rip_preconfig(struct protocol *x, struct config *c)
-{
-  DBG( "RIP: preconfig\n" );
-}
-
 static int
 rip_get_attr(eattr *a, byte *buf)
 {
@@ -862,7 +856,6 @@ struct protocol proto_rip = {
   name: "RIP",
   template: "rip%d",
   attr_class: EAP_RIP,
-  preconfig: rip_preconfig,
   get_route_info: rip_get_route_info,
   get_attr: rip_get_attr,
 
index bafa2e91068b3fee8019cce7ecbb556e4d2ed1a5..3bba85856108596010391fd2a580cb18c7779220 100644 (file)
@@ -13,7 +13,7 @@
 #include <sys/uio.h>
 #include <errno.h>
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "nest/bird.h"
 #include "nest/route.h"
index 06d1d1dcb1e16e36bda577989a3fe580f6bdf98b..516c4acbc3c7d0b4216c63625a4b5cae3236b8d3 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 <stdio.h>
 #include <stdlib.h>
@@ -410,8 +410,9 @@ main(int argc, char **argv)
 
   cli_init_unix();
 
-  ev_run_list(&global_event_list);
-  async_dump();
+#ifdef LOCAL_DEBUG
+  async_dump_flag = 1;
+#endif
 
   DBG("Entering I/O loop.\n");