diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 13:28:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 13:28:02 +0100 |
commit | f6f764c1318b31c2e3796666d5623614aecb3167 (patch) | |
tree | 08f891c04bf59a9813faf84d3c1194150d1f9274 /c/src/lib/libbsp/powerpc/mvme3100 | |
parent | sapi: Fix warnings (diff) | |
download | rtems-f6f764c1318b31c2e3796666d5623614aecb3167.tar.bz2 |
bsps/powerpc: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme3100')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c b/c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c index a1f6f2d3f3..8488c99dc5 100644 --- a/c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c +++ b/c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c @@ -100,7 +100,7 @@ dump_dev_cb( pci_read_config_byte (bus, dev, fun, PCI_INTERRUPT_LINE, &il); pci_read_config_byte (bus, dev, fun, PCI_INTERRUPT_PIN, &ip); - printk("%3d:0x%02x:%d 0x%04x-0x%04x: 0x%04x 0x%04x 0x%08x 0x%08x %d -> %3d (=0x%02x)\n", + printk("%3d:0x%02x:%d 0x%04x-0x%04x: 0x%04x 0x%04x 0x%08" PRIx32 " 0x%08" PRIx32 " %d -> %3d (=0x%02x)\n", bus, dev, fun, vi, di, cd, st, b1, b2, ip, il, il); return 0; } diff --git a/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c index 6ab2864a5d..41edaf5743 100644 --- a/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c @@ -18,6 +18,7 @@ #include <string.h> #include <stdlib.h> +#include <inttypes.h> #include <rtems.h> #include <bsp.h> @@ -271,7 +272,7 @@ VpdBufRec vpdData [] = { #ifdef SHOW_MORE_INIT_SETTINGS printk("Additionnal boot options are %s\n", BSP_commandline_string); - printk("Initial system stack at %x\n", stack); + printk("Initial system stack at %" PRIxPTR "\n", (uintptr_t) stack); printk("Software IRQ stack starts at %x with size %u\n", intrStackStart, intrStackSize); #endif |