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

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


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

Author:    Cillian O'Donnell <cpodonnell8 at gmail.com>
Date:      Sat Apr  8 11:25:28 2017 +0100

libbsp/powerpc/./pci/detect_raven_bridge.c: Use inttypes.h to fix 1 warning.

---

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

diff --git a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
index fc2127e..423dc6f 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
@@ -1,5 +1,6 @@
 #include <libcpu/io.h>
 #include <libcpu/spr.h>
+#include <inttypes.h>
 
 #include <bsp.h>
 #include <bsp/pci.h>
@@ -149,7 +150,7 @@ void detect_host_bridge(void)
   }
   pci_read_config_dword(0, 0, 0, 0, &id0);
 #ifdef SHOW_RAVEN_SETTINGS
-  printk("idreg 0 = 0x%x\n",id0);
+  printk("idreg 0 = 0x%" PRIu32 "\n",id0);
 #endif
   if((id0 == PCI_VENDOR_ID_MOTOROLA +
       (PCI_DEVICE_ID_MOTOROLA_RAVEN<<16)) ||



More information about the vc mailing list