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 <[email protected]>
---
 commands/bootm.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commands/bootm.c b/commands/bootm.c
index 38233e7..65a75e2 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;
-- 
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to