several debug() calls converted to DBG().
#include <setjmp.h>
#include <stdarg.h>
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include "nest/bird.h"
#include "nest/route.h"
*
*/
+#undef LOCAL_DEBUG
+
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
{
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;
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;
}
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
}
* 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"
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include <string.h>
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
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 *
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include <string.h>
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);
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;
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include <string.h>
#include <string.h>
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include "nest/bird.h"
#include "nest/route.h"
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;
* 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"
* Can be freely distributed and used under the terms of the GNU GPL.
*/
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include <string.h>
* 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>
void
async_shutdown(void)
{
- debug("Shutting down...\n");
+ DBG("Shutting down...\n");
order_shutdown();
}
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;
}
log(L_INFO "Launching BIRD " BIRD_VERSION "...");
- debug("Initializing.\n");
+ DBG("Initializing.\n");
resource_init();
olock_init();
io_init();
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");