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>
This commit is contained in:
parent
a7288328a9
commit
498ec3c6da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user