summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluoyaozu <luoyaozu@foxmail.com>2022-09-05 22:16:01 +0800
committerBeno�t Ganne <bganne@cisco.com>2022-09-15 08:37:29 +0000
commitb3778cce705305ecc3401b9dd69790b200e82dbe (patch)
tree02d9e4d55ab6601f6152711bc6172e4b810766a0
parent121a16af699b168daa712f58521275127f8eb29b (diff)
ip-neighbor: fix debug log format output
Type: fix Signed-off-by: luoyaozu <luoyaozu@foxmail.com> Change-Id: Ibfebe4da0197d1f60bf9edd3873fe1f776b680a4
-rw-r--r--src/vnet/ip-neighbor/ip_neighbor.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/ip-neighbor/ip_neighbor.c b/src/vnet/ip-neighbor/ip_neighbor.c
index b2d4fa0d8be..b33ca8a3538 100644
--- a/src/vnet/ip-neighbor/ip_neighbor.c
+++ b/src/vnet/ip-neighbor/ip_neighbor.c
@@ -1441,10 +1441,9 @@ ip_neighbor_add_del_interface_address_v4 (ip4_main_t * im,
* Flush the ARP cache of all entries covered by the address
* that is being removed.
*/
- IP_NEIGHBOR_DBG ("addr-%d: %U, %U/%d",
- (is_del ? "del" : "add"),
- format_vnet_sw_if_index_name, vnet_get_main (),
- sw_if_index, format_ip4_address, address, address_length);
+ IP_NEIGHBOR_DBG ("addr-%s: %U, %U/%d", (is_del ? "del" : "add"),
+ format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index,
+ format_ip4_address, address, address_length);
if (is_del)
{