diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-16 20:10:32 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-06 20:56:38 +0000 | 
| commit | 9df414feebc0748bbff2ea9071c76be59618e8e6 (patch) | |
| tree | 3620b5236cc2c247a4aeb4633cb44e5c6042a615 /zebra/rtread_sysctl.c | |
| parent | dbb93f1b90be4cad6483874b843e309186c4b1ce (diff) | |
zebra: flog_warn conversion
Convert Zebra to user error subsystem.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/rtread_sysctl.c')
| -rw-r--r-- | zebra/rtread_sysctl.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/rtread_sysctl.c b/zebra/rtread_sysctl.c index fba67e3d0c..ca3ff2dc65 100644 --- a/zebra/rtread_sysctl.c +++ b/zebra/rtread_sysctl.c @@ -47,7 +47,8 @@ void route_read(struct zebra_ns *zns)  	/* Get buffer size. */  	if (sysctl(mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) { -		zlog_warn("sysctl fail: %s", safe_strerror(errno)); +		flog_warn(ZEBRA_ERR_ZEBRA_ERR_SYSCTL_FAILED, "sysctl fail: %s", +			  safe_strerror(errno));  		return;  	} @@ -56,7 +57,8 @@ void route_read(struct zebra_ns *zns)  	/* Read routing table information by calling sysctl(). */  	if (sysctl(mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0) { -		zlog_warn("sysctl() fail by %s", safe_strerror(errno)); +		flog_warn(ZEBRA_ERR_SYSCTL_FAILED, "sysctl() fail by %s", +			  safe_strerror(errno));  		XFREE(MTYPE_TMP, ref);  		return;  	}  | 
