This is an automated email from the ASF dual-hosted git repository. raiden00 pushed a commit to branch releases/12.7 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit fe1286b44a255ebf497e781afc048d15818dcd5a Author: Yongrong Wang <[email protected]> AuthorDate: Thu Aug 1 17:08:18 2024 +0800 pci.c: fix compile warning pci/pci.c:1128:15: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 1128 | pciinfo("Limit MME to %x, num to %d\n", mmc, num); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | uint32_t {aka long unsigned int} pci/pci.c:1128:30: note: format string is defined here 1128 | pciinfo("Limit MME to %x, num to %d\n", mmc, num); | ~^ | | | unsigned int | %lx Signed-off-by: Yongrong Wang <[email protected]> --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 1e9aa63d3d..74ab1a1e6b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1127,7 +1127,7 @@ static int pci_enable_msi(FAR struct pci_device_s *dev, FAR int *irq, { mme = mmc; num = 1 << mme; - pciinfo("Limit MME to %x, num to %d\n", mmc, num); + pciinfo("Limit MME to %"PRIx32", num to %d\n", mmc, num); } /* Configure MSI (arch-specific) */
