[dpdk-dev] [PATCH v9 05/10] pci: fix format warning on Windows
Thomas Monjalon
thomas at monjalon.net
Thu Jun 25 14:54:02 CEST 2020
24/06/2020 10:28, talshn at mellanox.com:
> From: Tal Shnaiderman <talshn at mellanox.com>
>
> the struct rte_pci_addr defines domain as uint32_t variable however
> the PCI_PRI_FMT macro used for logging the struct sets the format
> of domain to uint16_t.
>
> The mismatch causes the following warning messages
> in Windows clang build:
>
> format specifies type 'unsigned short' but the argument
> has type 'uint32_t' (aka 'unsigned int') [-Wformat]
>
> Signed-off-by: Tal Shnaiderman <talshn at mellanox.com>
Fixes: af75078fece3 ("first public release")
Cc: stable at dpdk.org
More information about the dev
mailing list