diff options
Diffstat (limited to 'sysdep/unix/krt.h')
-rw-r--r-- | sysdep/unix/krt.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <mj@ucw.cz> + * (c) 1998--2000 Martin Mares <mj@ucw.cz> * * 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); |