summaryrefslogtreecommitdiff
path: root/zebra/zebra_fpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_fpm.c')
-rw-r--r--zebra/zebra_fpm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c
index 73534c4332..5fe8934a82 100644
--- a/zebra/zebra_fpm.c
+++ b/zebra/zebra_fpm.c
@@ -37,7 +37,6 @@
#include "zebra/zebra_ns.h"
#include "zebra/zebra_vrf.h"
#include "zebra/zebra_errors.h"
-#include "zebra/zebra_memory.h"
#include "fpm/fpm.h"
#include "zebra_fpm_private.h"
@@ -1555,7 +1554,6 @@ static void zfpm_mac_info_del(struct fpm_mac_info_t *fpm_mac)
static int zfpm_trigger_rmac_update(zebra_mac_t *rmac, zebra_l3vni_t *zl3vni,
bool delete, const char *reason)
{
- char buf[ETHER_ADDR_STRLEN];
struct fpm_mac_info_t *fpm_mac, key;
struct interface *vxlan_if, *svi_if;
bool mac_found = false;
@@ -1568,9 +1566,8 @@ static int zfpm_trigger_rmac_update(zebra_mac_t *rmac, zebra_l3vni_t *zl3vni,
return 0;
if (reason) {
- zfpm_debug("triggering update to FPM - Reason: %s - %s",
- reason,
- prefix_mac2str(&rmac->macaddr, buf, sizeof(buf)));
+ zfpm_debug("triggering update to FPM - Reason: %s - %pEA",
+ reason, &rmac->macaddr);
}
vxlan_if = zl3vni_map_to_vxlan_if(zl3vni);
@@ -2048,4 +2045,5 @@ static int zebra_fpm_module_init(void)
FRR_MODULE_SETUP(.name = "zebra_fpm", .version = FRR_VERSION,
.description = "zebra FPM (Forwarding Plane Manager) module",
- .init = zebra_fpm_module_init, )
+ .init = zebra_fpm_module_init,
+);