diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-22 20:34:57 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-22 20:34:57 +0000 |
commit | 2d2140d9f143a293a04df5f751a36fda35c993c4 (patch) | |
tree | 7030735ccdddfb699ade95c68e659df7848df61b /usr.sbin/bgpd/control.c | |
parent | c84df82899a1c70448d6b740531565ba632f0101 (diff) |
use log_warnx and log_info. reclassify a few messages in the process and fix
a few messages.
ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index e6c34e4e46b..e00289e959c 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.19 2004/01/22 03:18:03 henning Exp $ */ +/* $OpenBSD: control.c,v 1.20 2004/01/22 20:34:55 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -125,7 +125,7 @@ control_accept(int listenfd) } if (uid) { - logit(LOG_INFO, "Control connection attempt from uid %ld", uid); + log_info("Control connection attempt from uid %ld", uid); return; } @@ -246,10 +246,10 @@ control_dispatch_msg(struct pollfd *pfd, int i) if (p != NULL) bgp_fsm(p, EVNT_START); else - logit(LOG_CRIT, "IMSG_CTL_NEIGHBOR_UP " + log_warnx("IMSG_CTL_NEIGHBOR_UP " "with unknown neighbor"); } else - logit(LOG_CRIT, "got IMSG_CTL_NEIGHBOR_UP with " + log_warnx("got IMSG_CTL_NEIGHBOR_UP with " "wrong length"); break; case IMSG_CTL_NEIGHBOR_DOWN: @@ -260,10 +260,10 @@ control_dispatch_msg(struct pollfd *pfd, int i) if (p != NULL) bgp_fsm(p, EVNT_STOP); else - logit(LOG_CRIT, "IMSG_CTL_NEIGHBOR_DOWN" + log_warnx("IMSG_CTL_NEIGHBOR_DOWN" " with unknown neighbor"); } else - logit(LOG_CRIT, "got IMSG_CTL_NEIGHBOR_DOWN " + log_warnx("got IMSG_CTL_NEIGHBOR_DOWN " "with wrong length"); break; case IMSG_CTL_KROUTE: |