]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: print prefix instead of unininted buf
authorDonald Sharp <sharpd@nvidia.com>
Sat, 14 Nov 2020 22:40:53 +0000 (17:40 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 14 Nov 2020 23:18:58 +0000 (18:18 -0500)
The recent change to use %pFX missed a code path
where we were displaying a buf that was uninited.
Display the prefix as intended.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_zebra.c

index c44e18383ef86775394d9437f9bfc70fe9903e8d..0f8168c89e117f8897282e636c1d9a37f9189c4f 100644 (file)
@@ -531,9 +531,9 @@ static int zebra_read_route(ZAPI_CALLBACK_ARGS)
                                api.instance, &api.prefix, buf, nhtype, ifindex,
                                api.metric, api.tag);
                } else {
-                       zlog_debug("Rx route DEL VRF %u %s[%d] %s", vrf_id,
+                       zlog_debug("Rx route DEL VRF %u %s[%d] %pFX", vrf_id,
                                   zebra_route_string(api.type), api.instance,
-                                  buf);
+                                  &api.prefix);
                }
        }