[PATCH 05/11] Using inttype macro, fixes 1 format warning.

Cillian O'Donnell cpodonnell8 at gmail.com
Fri Apr 7 22:37:41 UTC 2017


---
 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);
-- 
2.7.4




More information about the devel mailing list