diff options
author | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-04-20 11:36:49 +0000 |
---|---|---|
committer | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-04-20 11:36:49 +0000 |
commit | c86cc1638898456964b41061e1874f03a1131bc6 (patch) | |
tree | 4f34f5005890b600cb811c3a8e5f612945986a18 /usr.sbin | |
parent | 678771218a02548453be71f852ffd5eef855d5d6 (diff) |
Take failed system calls more serious than LOG_INFO.
This is mainly in preparation for more changes to logging.
Ok bluhm@, pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtadvd/advcap.c | 4 | ||||
-rw-r--r-- | usr.sbin/rtadvd/config.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/advcap.c b/usr.sbin/rtadvd/advcap.c index ffa433ec0aa..be9cf8baf9b 100644 --- a/usr.sbin/rtadvd/advcap.c +++ b/usr.sbin/rtadvd/advcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: advcap.c,v 1.11 2005/04/11 19:59:07 deraadt Exp $ */ +/* $OpenBSD: advcap.c,v 1.12 2008/04/20 11:36:48 rainer Exp $ */ /* $KAME: advcap.c,v 1.9 2002/05/29 14:28:35 itojun Exp $ */ /* @@ -134,7 +134,7 @@ getent(bp, name, cp) tf = open(RM = cp, O_RDONLY); } if (tf < 0) { - syslog(LOG_INFO, + syslog(LOG_WARNING, "<%s> open: %s", __func__, strerror(errno)); return (-2); } diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 3092d054986..2c7d032ca80 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.23 2006/03/22 10:49:17 claudio Exp $ */ +/* $OpenBSD: config.c,v 1.24 2008/04/20 11:36:48 rainer Exp $ */ /* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */ /* @@ -583,7 +583,7 @@ init_prefix(struct in6_prefixreq *ipr) } if (ioctl(s, SIOCGIFPREFIX_IN6, (caddr_t)ipr) < 0) { - syslog(LOG_INFO, "<%s> ioctl:SIOCGIFPREFIX %s", __func__, + syslog(LOG_WARNING, "<%s> ioctl:SIOCGIFPREFIX %s", __func__, strerror(errno)); ipr->ipr_vltime = DEF_ADVVALIDLIFETIME; |