RTEMS | bsps/mips/malta/pci/pci.c: Correct printf() format specifiers (!574)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Jul 10 22:03:19 UTC 2025




Kinsey Moore started a new discussion on bsps/mips/malta/pci/pci.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/574#note_126312

 > +  printk("***    PCI DEVICE BAR0: 0x%ulx\n", addr);
 >    pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_1, &addr);
 > -  printk("***    PCI DEVICE BAR1: 0x%lx\n", addr);
 > +  printk("***    PCI DEVICE BAR1: 0x%ulx\n", addr);
 >    pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_2, &addr);
 > -  printk("***    PCI DEVICE BAR2: 0x%lx\n", addr);
 > +  printk("***    PCI DEVICE BAR2: 0x%ulx\n", addr);
 >    pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_3, &addr);
 > -  printk("***    PCI DEVICE BAR3: 0x%lx\n", addr);
 > +  printk("***    PCI DEVICE BAR3: 0x%ulx\n", addr);
 >    pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_4, &addr);
 > -  printk("***    PCI DEVICE BAR4: 0x%lx\n", addr);
 > +  printk("***    PCI DEVICE BAR4: 0x%ulx\n", addr);
 >    pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_5, &addr);
 > -  printk("***    PCI DEVICE BAR5: 0x%lx\n", addr);
 > +  printk("***    PCI DEVICE BAR5: 0x%ulx\n", addr);

What is `%ulx`? Should it be `%x` instead?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/574#note_126312
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250710/5902bef9/attachment-0001.htm>


More information about the bugs mailing list