summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/imsg.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-22 20:34:57 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-22 20:34:57 +0000
commit2d2140d9f143a293a04df5f751a36fda35c993c4 (patch)
tree7030735ccdddfb699ade95c68e659df7848df61b /usr.sbin/bgpd/imsg.c
parentc84df82899a1c70448d6b740531565ba632f0101 (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/imsg.c')
-rw-r--r--usr.sbin/bgpd/imsg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/imsg.c b/usr.sbin/bgpd/imsg.c
index 171570057ce..a566e6c6bb1 100644
--- a/usr.sbin/bgpd/imsg.c
+++ b/usr.sbin/bgpd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.21 2004/01/22 03:18:03 henning Exp $ */
+/* $OpenBSD: imsg.c,v 1.22 2004/01/22 20:34:56 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -71,7 +71,7 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg)
memcpy(&imsg->hdr, ibuf->r.buf, sizeof(imsg->hdr));
if (imsg->hdr.len < IMSG_HEADER_SIZE ||
imsg->hdr.len > MAX_IMSGSIZE) {
- logit(LOG_CRIT, "wrong imsg hdr len");
+ log_warnx("imsg_get: imsg hdr len out of bounds");
return (-1);
}
if (imsg->hdr.len > av)
@@ -122,23 +122,23 @@ imsg_compose_core(struct imsgbuf *ibuf, int type, u_int32_t peerid, void *data,
hdr.pid = pid;
wbuf = buf_open(hdr.len);
if (wbuf == NULL) {
- logit(LOG_CRIT, "imsg_compose: buf_open error");
+ log_warnx("imsg_compose: buf_open error");
return (-1);
}
if (buf_add(wbuf, &hdr, sizeof(hdr)) == -1) {
- logit(LOG_CRIT, "imsg_compose: buf_add error");
+ log_warnx("imsg_compose: buf_add error");
buf_free(wbuf);
return (-1);
}
if (datalen)
if (buf_add(wbuf, data, datalen) == -1) {
- logit(LOG_CRIT, "imsg_compose: buf_add error");
+ log_warnx("imsg_compose: buf_add error");
buf_free(wbuf);
return (-1);
}
if ((n = buf_close(&ibuf->w, wbuf)) < 0) {
- logit(LOG_CRIT, "imsg_compose: buf_add error");
+ log_warnx("imsg_compose: buf_add error");
buf_free(wbuf);
return (-1);
}