summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-22 21:09:01 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-22 21:09:01 +0000
commit0991a9522eeb0c7735a7e45554c1698d9c79d89c (patch)
tree404b84817386c20df27dc236877d50b6c4f13c91 /usr.sbin/bgpd/rde.c
parentab5125e110d669f4ecd17be205d2235ecdaa8466 (diff)
provide a log_debug and use it in rde.c.
with this, logit() can be a private function. we don't need to include syslog.h in bgpd.h any more; log.c and parse.y who need it include it directly now.
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 5898cb8795b..eb5a1a127c2 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.66 2004/01/22 21:01:26 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.67 2004/01/22 21:09:00 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -578,8 +578,7 @@ rde_update_log(const char *message,
asprintf(&nexthop, " via %s", inet_ntoa(nh));
}
- logit(LOG_DEBUG, "neighbor %s (AS%u) %s %s/%u"
- "%s",
+ log_debug("neighbor %s (AS%u) %s %s/%u %s",
neighbor, peer->conf.remote_as, message,
inet_ntoa(prefix->v4), prefixlen,
nexthop ? nexthop : "");