[rtems commit] beatnik/pci/gt_pci_init.c: Fix printf() format warnings

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    1b24a9b8275c2904e4ab1b24d4ff55404ce0a550
Changeset: http://git.rtems.org/rtems/commit/?id=1b24a9b8275c2904e4ab1b24d4ff55404ce0a550

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 20:04:41 2017 -0500

beatnik/pci/gt_pci_init.c: Fix printf() format warnings

---

 c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c b/c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c
index 82afd32..d2a5232 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c
+++ b/c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c
@@ -239,7 +239,7 @@ int				hose = PCI_BUS2HOSE(bus);
 	} while ( ! PCI_STATUS_OK(pcistat) && count-- );
 
 	if ( !PCI_STATUS_OK(rval) && !quiet) {
-		printk("Cleared PCI errors at discovery (hose %i): pci_stat was 0x%04x\n", hose, rval);
+		printk("Cleared PCI errors at discovery (hose %i): pci_stat was 0x%04lx\n", hose, rval);
 	}
 	if ( !PCI_STATUS_OK(pcistat) ) {
 		printk("Unable to clear PCI errors at discovery (hose %i) still 0x%04x after 10 attempts\n",hose, pcistat);




More information about the vc mailing list