]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix debug test in routing-socket update path
authorMark Stapp <mjs@voltanet.io>
Thu, 20 Dec 2018 18:22:22 +0000 (13:22 -0500)
committerMark Stapp <mjs@voltanet.io>
Tue, 22 Jan 2019 20:07:16 +0000 (15:07 -0500)
Fix the test used to pre-populate a string used in debugs
in the routing-socket route-update code path.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/rt_socket.c

index 7dc5ef8b66efd8ce6a3a1061bc228a8a642fdf4c..a6cdffdf3209033dc0ec3e29ef84c23c9f93f421 100644 (file)
@@ -84,8 +84,7 @@ static int kernel_rtm(int cmd, const struct prefix *p,
        char prefix_buf[PREFIX_STRLEN];
        enum blackhole_type bh_type = BLACKHOLE_UNSPEC;
 
-       if (IS_ZEBRA_DEBUG_RIB || IS_ZEBRA_DEBUG_KERNEL)
-               prefix2str(p, prefix_buf, sizeof(prefix_buf));
+       prefix2str(p, prefix_buf, sizeof(prefix_buf));
 
        /*
         * We only have the ability to ADD or DELETE at this point