summaryrefslogtreecommitdiffstats
path: root/commands/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-25 10:22:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:28 +0100
commit025b5394bd4c744aad5f419354e540003cddcd4b (patch)
treecb82b7162a17adb64b1e081641acfcbe4f6905c0 /commands/bootm.c
parent64c199dd29b7eed9def158afba2036fd2ebe905a (diff)
downloadbarebox-025b5394bd4c744aad5f419354e540003cddcd4b.tar.gz
barebox-025b5394bd4c744aad5f419354e540003cddcd4b.tar.xz
bootm: Use of_print_nodes instead of fdt_print
Now that we use the unflattened tree in bootm we can use of_print_nodes instead of printing the flattened tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r--commands/bootm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/bootm.c b/commands/bootm.c
index 38233e72f1..65a75e20ba 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -194,15 +194,15 @@ static int bootm_open_oftree(struct image_data *data, const char *oftree, int nu
return -EINVAL;
}
+ if (bootm_verbose(data) > 1)
+ of_print_nodes(node, 0);
+
fixfdt = of_get_fixed_tree(node);
if (!fixfdt)
return -EINVAL;
free(fdt);
- if (bootm_verbose(data) > 1)
- fdt_print(fixfdt, "/");
-
data->oftree = fixfdt;
return 0;