eal/windows: fix vfprintf warning with clang
authorNick Connolly <nick.connolly@mayadata.io>
Sun, 29 Nov 2020 13:00:47 +0000 (13:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Dec 2020 20:24:57 +0000 (21:24 +0100)
commit498ec3c6da6da0a8c9e6ad7ddd087e10faa77eb0
tree49cac7873ca315c32aed8bfdf4167d4c565dfd49
parenta7288328a9f5b8e89c86681b35c59ee177566bb9
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 <dmitry.kozliuk@gmail.com>
Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Pallavi Kadam <pallavi.kadam@intel.com>
lib/librte_eal/windows/eal_lcore.c