[rtems commit] powerpc/mvme550/./pci.c: Use inttypes.h constant to fix 1 warning.

Joel Sherrill joel at rtems.org
Fri Apr 14 16:00:12 UTC 2017


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

Author:    Cillian O'Donnell <cpodonnell8 at gmail.com>
Date:      Sat Apr  8 12:17:56 2017 +0100

powerpc/mvme550/./pci.c: Use inttypes.h constant to fix 1 warning.

---

 c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
index 8601721..bef0173 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
@@ -33,6 +33,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <inttypes.h>
 
 #define PCI_DEBUG 0
 #define PCI_PRINT 1
@@ -294,7 +295,7 @@ int pci_initialize(void)
 	  break;
        default :
 #if PCI_PRINT
-          printk("BSP unlisted vendor, Bus%d Slot%d DeviceID 0x%x \n",
+          printk("BSP unlisted vendor, Bus%d Slot%d DeviceID 0x%" PRIx32 "\n",
              ucBusNumber,ucSlotNumber, ulDeviceID);
 #endif
 	  /* Kate Feng : device not supported by BSP needs to remap the IRQ line on mvme5500/mvme6100 */




More information about the vc mailing list