From dfcfb7f169c361e395e817f33381981c7fdf9539 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 18 Jun 2014 01:00:22 -0600 Subject: [PATCH] Correct output from memreserve in fdtdump This currently displays a hex value without the 0x prefix. Add the prefix as dtc requires it. Signed-off-by: Simon Glass --- fdtdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdtdump.c b/fdtdump.c index 723770d..a29aa5e 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -88,7 +88,7 @@ static void dump_blob(void *blob, bool debug) if (addr == 0 && size == 0) break; - printf("/memreserve/ %llx %llx;\n", + printf("/memreserve/ %#llx %#llx;\n", (unsigned long long)addr, (unsigned long long)size); }