Skip to content

Commit 2756045

Browse files
wyr-7xiaoxiang781216
authored andcommitted
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]>
1 parent 860bd3a commit 2756045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ static int pci_enable_msi(FAR struct pci_device_s *dev, FAR int *irq,
11351135
{
11361136
mme = mmc;
11371137
num = 1 << mme;
1138-
pciinfo("Limit MME to %x, num to %d\n", mmc, num);
1138+
pciinfo("Limit MME to %"PRIx32", num to %d\n", mmc, num);
11391139
}
11401140

11411141
/* Configure MSI (arch-specific) */

0 commit comments

Comments
 (0)