summaryrefslogtreecommitdiffstats
path: root/zebra/label_manager.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/label_manager.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/label_manager.c')
-rw-r--r--zebra/label_manager.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c
index e53764c77..793d6cfa1 100644
--- a/zebra/label_manager.c
+++ b/zebra/label_manager.c
@@ -209,7 +209,8 @@ int zread_relay_label_manager_request(int cmd, struct zserv *zserv,
/* check & set client proto if unset */
if (zserv->proto && zserv->proto != proto) {
- zlog_warn("Client proto(%u) != msg proto(%u)", zserv->proto,
+ flog_warn(ZEBRA_WARNING_LM_PROTO_MISMATCH,
+ "Client proto(%u) != msg proto(%u)", zserv->proto,
proto);
return -1;
}
@@ -277,9 +278,7 @@ static int lm_zclient_connect(struct thread *t)
}
/* make socket non-blocking */
- if (set_nonblocking(zclient->sock) < 0)
- zlog_warn("%s: set_nonblocking(%d) failed", __func__,
- zclient->sock);
+ (void)set_nonblocking(zclient->sock);
return 0;
}