diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-03-15 08:36:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 08:36:23 -0400 |
| commit | cc01c03434dbcbd532043584a9b91e60acd2afe3 (patch) | |
| tree | f669a337b6e646db5412bf4db193fcd940b5b1b2 /zebra/zebra_dplane.c | |
| parent | 8b87b2f4f6fd5e3109cfdca7f5270b2b1612faeb (diff) | |
| parent | ad6f7449ef178417384e2da979ec094372de6dba (diff) | |
Merge pull request #8230 from donaldsharp/flex_more
more switchover to using our builtin printf functionality
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 82546ce188..4e63d08aca 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -3539,15 +3539,9 @@ mac_update_common(enum dplane_op_e op, int ret; struct zebra_dplane_ctx *ctx = NULL; - if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) { - char buf1[ETHER_ADDR_STRLEN], buf2[PREFIX_STRLEN]; - - zlog_debug("init mac ctx %s: mac %s, ifp %s, vtep %s", - dplane_op2str(op), - prefix_mac2str(mac, buf1, sizeof(buf1)), - ifp->name, - inet_ntop(AF_INET, &vtep_ip, buf2, sizeof(buf2))); - } + if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) + zlog_debug("init mac ctx %s: mac %pEA, ifp %s, vtep %pI4", + dplane_op2str(op), mac, ifp->name, &vtep_ip); ctx = dplane_ctx_alloc(); ctx->zd_op = op; @@ -3725,14 +3719,9 @@ neigh_update_internal(enum dplane_op_e op, struct zebra_dplane_ctx *ctx = NULL; struct zebra_ns *zns; - if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) { - char buf1[ETHER_ADDR_STRLEN], buf2[PREFIX_STRLEN]; - - zlog_debug("init neigh ctx %s: ifp %s, mac %s, ip %s", - dplane_op2str(op), ifp->name, - prefix_mac2str(mac, buf1, sizeof(buf1)), - ipaddr2str(ip, buf2, sizeof(buf2))); - } + if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) + zlog_debug("init neigh ctx %s: ifp %s, mac %pEA, ip %pIA", + dplane_op2str(op), ifp->name, mac, ip); ctx = dplane_ctx_alloc(); |
