From: Donald Sharp Date: Mon, 25 Mar 2019 13:09:35 +0000 (-0400) Subject: lib: Improve debugs in zclient.c X-Git-Tag: 7.1_pulled~138^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cdc6ed9016db730a7af3924e6a3e30a21be64675;p=matthieu%2Ffrr.git lib: Improve debugs in zclient.c Fixup a couple of places to improve debugging of what is going on in zclient.c. Signed-off-by: Donald Sharp --- diff --git a/lib/zclient.c b/lib/zclient.c index 55f2393c56..7b94f1d907 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -629,7 +629,7 @@ void zclient_init(struct zclient *zclient, int redist_default, } if (zclient_debug) - zlog_debug("zclient_start is called"); + zlog_debug("scheduling zclient connection"); zclient_event(ZCLIENT_SCHEDULE, zclient); } @@ -2504,8 +2504,9 @@ static int zclient_read(struct thread *thread) length -= ZEBRA_HEADER_SIZE; if (zclient_debug) - zlog_debug("zclient 0x%p command 0x%x VRF %u", - (void *)zclient, command, vrf_id); + zlog_debug("zclient 0x%p command %s VRF %u", + (void *)zclient, zserv_command_string(command), + vrf_id); switch (command) { case ZEBRA_CAPABILITIES: