aboutsummaryrefslogtreecommitdiff
path: root/fdtdump.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-18 01:00:22 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2014-06-18 21:02:51 +1000
commitdfcfb7f169c361e395e817f33381981c7fdf9539 (patch)
treee78a08f9841fab70064930b1af7d212721429074 /fdtdump.c
parent40f7f576c8e7df395ed25f0f3df61fac85f1adf9 (diff)
downloaddtc-dfcfb7f169c361e395e817f33381981c7fdf9539.zip
dtc-dfcfb7f169c361e395e817f33381981c7fdf9539.tar.gz
dtc-dfcfb7f169c361e395e817f33381981c7fdf9539.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'fdtdump.c')
-rw-r--r--fdtdump.c2
1 files changed, 1 insertions, 1 deletions
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);
}