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/label_manager.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/label_manager.c')
| -rw-r--r-- | zebra/label_manager.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c index e53764c770..793d6cfa18 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;  }  | 
