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(). --- nest/iface.c | 2 +- nest/neighbor.c | 2 +- nest/proto.c | 14 +++++++------- nest/rt-dev.c | 6 +++--- nest/rt-fib.c | 2 +- nest/rt-table.c | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) (limited to 'nest') diff --git a/nest/iface.c b/nest/iface.c index cf91833..0ba6bef 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -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 } diff --git a/nest/neighbor.c b/nest/neighbor.c index e9be865..c4328b6 100644 --- a/nest/neighbor.c +++ b/nest/neighbor.c @@ -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" diff --git a/nest/proto.c b/nest/proto.c index f137aa5..7243fcd 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -6,7 +6,7 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include @@ -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 * diff --git a/nest/rt-dev.c b/nest/rt-dev.c index edadeba..d42ed15 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -6,7 +6,7 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include @@ -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; diff --git a/nest/rt-fib.c b/nest/rt-fib.c index efc2cd8..4d89876 100644 --- a/nest/rt-fib.c +++ b/nest/rt-fib.c @@ -6,7 +6,7 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include diff --git a/nest/rt-table.c b/nest/rt-table.c index 7d992aa..f255a05 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -8,7 +8,7 @@ #include -#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; -- cgit v1.2.3