From 7a50e33f2a686564aa43e4920141e6f64e042df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 24 Oct 2021 10:22:07 +0200 Subject: [PATCH] Fix HOST_PRINTF format string Without this patch the printf invocation takes more argument that it has format strings, since the format_qos() output string is printed in the if statement following the HOST_PRINTF invocation, I believe this to be an accidental error made in 66464b61f8ee756dcfc0081944f4367da2b1a6ab. --- src/oping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/oping.c b/src/oping.c index c087c80..9bbbe1f 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1639,8 +1639,7 @@ static void update_host_hook (pingobj_iter_t *iter, /* {{{ */ HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ", data_len, context->host, context->addr, - sequence, recv_ttl, - format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str))); + sequence, recv_ttl); if ((recv_qos != 0) || (opt_send_qos != 0)) { HOST_PRINTF ("qos=%s ",