summaryrefslogtreecommitdiffstats
path: root/zebra/if_ioctl.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-08-16 22:10:32 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 22:56:38 +0200
commit9df414feebc0748bbff2ea9071c76be59618e8e6 (patch)
tree3620b5236cc2c247a4aeb4633cb44e5c6042a615 /zebra/if_ioctl.c
parentospfd: Convert ospf_sr.c to use error-card subsystem. (diff)
downloadfrr-9df414feebc0748bbff2ea9071c76be59618e8e6.tar.xz
frr-9df414feebc0748bbff2ea9071c76be59618e8e6.zip
zebra: flog_warn conversion
Convert Zebra to user error subsystem. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/if_ioctl.c')
-rw-r--r--zebra/if_ioctl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c
index 176bb2bba..8b5830fa1 100644
--- a/zebra/if_ioctl.c
+++ b/zebra/if_ioctl.c
@@ -57,8 +57,9 @@ static int interface_list_ioctl(void)
/* Normally SIOCGIFCONF works with AF_INET socket. */
sock = socket(AF_INET, SOCK_DGRAM, 0);
if (sock < 0) {
- zlog_warn("Can't make AF_INET socket stream: %s",
- safe_strerror(errno));
+ flog_err_sys(LIB_ERR_SOCKET,
+ "Can't make AF_INET socket stream: %s",
+ safe_strerror(errno));
return -1;
}
@@ -86,7 +87,8 @@ static int interface_list_ioctl(void)
ret = ioctl(sock, SIOCGIFCONF, &ifconf);
if (ret < 0) {
- zlog_warn("SIOCGIFCONF: %s", safe_strerror(errno));
+ flog_err_sys(LIB_ERR_SYSTEM_CALL, "SIOCGIFCONF: %s",
+ safe_strerror(errno));
goto end;
}
/* Repeatedly get info til buffer fails to grow. */