diff options
| author | David Lamparter <equinox@diac24.net> | 2021-03-12 02:44:45 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-03-14 22:56:07 +0100 |
| commit | ef7b8be4592dae660b14ea4c73e5160f99482da7 (patch) | |
| tree | 8b069a2458118db75c1b15ebc69405ea4624b6ab /zebra/zebra_dplane.c | |
| parent | 5e9f9adbb4e51051f81f7e61db5d4136b6f34ae0 (diff) | |
zebra: use printfrr exts in EVPN/VXLAN code
Signed-off-by: David Lamparter <equinox@diac24.net>
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(); |
