summaryrefslogtreecommitdiff
path: root/zebra/ipforward_solaris.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-08-16 20:10:32 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 20:56:38 +0000
commit9df414feebc0748bbff2ea9071c76be59618e8e6 (patch)
tree3620b5236cc2c247a4aeb4633cb44e5c6042a615 /zebra/ipforward_solaris.c
parentdbb93f1b90be4cad6483874b843e309186c4b1ce (diff)
zebra: flog_warn conversion
Convert Zebra to user error subsystem. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/ipforward_solaris.c')
-rw-r--r--zebra/ipforward_solaris.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/zebra/ipforward_solaris.c b/zebra/ipforward_solaris.c
index b06baa04a9..4a3966ca26 100644
--- a/zebra/ipforward_solaris.c
+++ b/zebra/ipforward_solaris.c
@@ -84,15 +84,16 @@ static int solaris_nd(const int cmd, const char *parameter, const int value)
frr_elevate_privs(&zserv_privs) {
if ((fd = open(device, O_RDWR)) < 0) {
- zlog_warn("failed to open device %s - %s", device,
- safe_strerror(errno));
+ flog_err_sys(LIB_ERR_SYSTEM_CALL,
+ "failed to open device %s - %s", device,
+ safe_strerror(errno));
return -1;
}
if (ioctl(fd, I_STR, &strioctl) < 0) {
close(fd);
- zlog_warn("ioctl I_STR failed on device %s - %s",
- device,
- safe_strerror(errno));
+ flog_err_sys(LIB_ERR_SYSTEM_CALL,
+ "ioctl I_STR failed on device %s - %s",
+ device, safe_strerror(errno));
return -1;
}
close(fd);
@@ -102,7 +103,7 @@ static int solaris_nd(const int cmd, const char *parameter, const int value)
errno = 0;
retval = atoi(nd_buf);
if (errno) {
- zlog_warn(
+ zlog_debug(
"failed to convert returned value to integer - %s",
safe_strerror(errno));
retval = -1;