[rtems commit] libbsp/.../sparc64/loader/main.c: Use inttypes.h constants to remove 1 warning

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


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

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

libbsp/.../sparc64/loader/main.c: Use inttypes.h constants to remove 1 warning

---

 c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c b/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
index f063ad7..f52c20b 100644
--- a/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
+++ b/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
@@ -40,6 +40,7 @@
 
 #include <bsp.h>
 #include <rtems/bspIo.h>
+#include <inttypes.h>
 
 #include <boot/main.h>
 #include <boot/balloc.h>
@@ -313,7 +314,7 @@ void bootstrap(void)
 		}
 	}
 	
-  printk("\nMemory statistics (total %d MB, starting at %x)\n",
+  printk("\nMemory statistics (total %d MB, starting at %" PRIxPTR ")\n",
 	    bootinfo.memmap.total >> 20, bootinfo.physmem_start);
 	printk(" %x: kernel entry point\n", KERNEL_VIRTUAL_ADDRESS);
 	printk(" %x: boot info structure\n", &bootinfo);



More information about the vc mailing list