]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Improve debugs in zclient.c 4008/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Mar 2019 13:09:35 +0000 (09:09 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Mar 2019 13:09:35 +0000 (09:09 -0400)
Fixup a couple of places to improve debugging of what is
going on in zclient.c.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c

index 55f2393c563b01867f31ee01d3a474feb651ba14..7b94f1d907a3e80d61c7cef3a6991b95fff688ae 100644 (file)
@@ -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: