From: Nick Connolly Date: Sun, 29 Nov 2020 13:00:47 +0000 (+0000) Subject: eal/windows: fix vfprintf warning with clang X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=498ec3c6da6da0a8c9e6ad7ddd087e10faa77eb0;p=dpdk.git eal/windows: fix vfprintf warning with clang When building with clang (11.0,--buildtype=debug), eal_lcore.c produces a -Wformat-nonliteral warning from the vfprintf call in log_early. Add __rte_format_printf annotation. Fixes: b8a36b086625 ("eal/windows: improve CPU and NUMA node detection") Cc: stable@dpdk.org Suggested-by: Dmitry Kozlyuk Signed-off-by: Nick Connolly Acked-by: Dmitry Kozlyuk Acked-by: Pallavi Kadam --- diff --git a/lib/librte_eal/windows/eal_lcore.c b/lib/librte_eal/windows/eal_lcore.c index d5ff721e03..a85149be95 100644 --- a/lib/librte_eal/windows/eal_lcore.c +++ b/lib/librte_eal/windows/eal_lcore.c @@ -38,6 +38,7 @@ static struct cpu_map cpu_map = { 0 }; /* eal_create_cpu_map() is called before logging is initialized */ static void +__rte_format_printf(1, 2) log_early(const char *format, ...) { va_list va;