mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
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 <wangyongrong@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
860bd3ad6f
commit
2756045b07
+1
-1
@@ -1135,7 +1135,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) */
|
||||
|
||||
Reference in New Issue
Block a user