From 832fa033b7ecacf3225d7aa8c86e30484a07d946 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 12 Mar 2000 21:54:39 +0000 Subject: Cleaned up debugging in kernel syncer. Netlink has still LOCAL_DEBUG turned on, but after some testing I'll gag it. --- sysdep/unix/krt.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sysdep/unix/krt.h') diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index 8a444f0..10da1a8 100644 --- a/sysdep/unix/krt.h +++ b/sysdep/unix/krt.h @@ -1,7 +1,7 @@ /* * BIRD -- UNIX Kernel Route Syncer * - * (c) 1998--1999 Martin Mares + * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -70,6 +70,11 @@ extern pool *krt_pool; #define KRT_CF ((struct krt_config *)p->p.cf) +#define KRT_TRACE(pr, fl, msg, args...) do { \ + DBG("KRT: " msg "\n" , ## args); \ + if (pr->p.debug & fl) \ + { log(L_TRACE "%s: " msg, pr->p.name , ## args); } } while(0) + void krt_got_route(struct krt_proto *p, struct rte *e); void krt_got_route_async(struct krt_proto *p, struct rte *e, int new); -- cgit v1.2.3