[Skiboot] [PATCH] init: print the FDT blob size in decimal

Oliver O'Halloran oohall at gmail.com
Tue Jan 10 10:26:24 AEDT 2017


Changes the skiboot output so that rather than printing the FDT address
and size in hex it prints the address in hex and the size in decimal.
Doing this lets you read the FDT blob with getmemproc and some
copy+paste.

Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
 core/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/init.c b/core/init.c
index 81939dd08808..61a180df881c 100644
--- a/core/init.c
+++ b/core/init.c
@@ -534,7 +534,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
 	/* Take processours out of nap */
 	cpu_set_pm_enable(false);
 
-	printf("INIT: Starting kernel at 0x%llx, fdt at %p (size 0x%x)\n",
+	printf("INIT: Starting kernel at 0x%llx, fdt at %p %u bytes)\n",
 	       kernel_entry, fdt, fdt_totalsize(fdt));
 
 	debug_descriptor.state_flags |= OPAL_BOOT_COMPLETE;
-- 
2.7.4



More information about the Skiboot mailing list