summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2021-03-15 11:10:27 -0400
committerDamjan Marion <dmarion@me.com>2021-03-15 17:44:12 +0000
commit1126c90e3ae1265baaf5a1190edf49c5c39f10fe (patch)
treee9a1452f8a19cc3aceb78a5219f8e5faefb57886 /src
parentaf2cc6425e7615cb90359254ae8fd429e4fea198 (diff)
dns: fix crash when printing unlikely msg
%U format, arguments out of order, etc. Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I829a3e5808923f096369ccf6af6386060ee8b62f
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dns/dns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/dns/dns.c b/src/plugins/dns/dns.c
index f3ce4fc55c9..0684a104bc3 100644
--- a/src/plugins/dns/dns.c
+++ b/src/plugins/dns/dns.c
@@ -2864,9 +2864,10 @@ vnet_send_dns4_reply (vlib_main_t * vm, dns_main_t * dm,
if (sw_if_index == ~0)
{
- clib_warning
- ("route to %U exists, fei %d, get_resolving_interface returned"
- " ~0", fei, format_ip4_address, &prefix.fp_addr);
+ clib_warning (
+ "route to %U exists, fei %d, get_resolving_interface returned"
+ " ~0",
+ format_ip4_address, &prefix.fp_addr, fei);
return;
}