summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-22 21:01:27 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-22 21:01:27 +0000
commit69179b995409f172eed354c7cab1d5a4ad635c65 (patch)
tree53035c60d46e3a3bfb0f025ee590bb85099bdbe3
parent7249f4acc56f234e1713b79ac0c975b9c5c6b1cc (diff)
use log_peer_warnx() now that we can, claudio agrees
-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 4e3d9ad8111..5898cb8795b 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.65 2004/01/22 20:34:56 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.66 2004/01/22 21:01:26 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -399,8 +399,7 @@ rde_update_dispatch(struct imsg *imsg)
nlri_len -= pos;
rde_update_log("update", peer, &attrs, &prefix, prefixlen);
if (peer->prefix_cnt >= peer->conf.max_prefix) {
- log_warnx("peer %s: prefix limit reached",
- peer->conf.descr); /* LXXX */
+ log_peer_warnx(&peer->conf, "prefix limit reached");
rde_update_err(peer, ERR_UPD_UNSPECIFIC);
break;
}