From 6e804e0e9c6e84f00c11ae34298f68709c5112fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 24 Aug 2012 21:15:50 +0200 Subject: [PATCH] U-Boot: don't dump the FDT nodes by default * only dump some header infos from the FDT by default, as dumping the complete tree can get quite verbose. (cherry picked from my sam460ex branch) --- src/system/boot/platform/u-boot/fdt_support.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system/boot/platform/u-boot/fdt_support.cpp b/src/system/boot/platform/u-boot/fdt_support.cpp index 3fba564ef0..cd7583dfd6 100644 --- a/src/system/boot/platform/u-boot/fdt_support.cpp +++ b/src/system/boot/platform/u-boot/fdt_support.cpp @@ -22,7 +22,8 @@ static const char *sTabTab = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; #define DS "%.*s" #define DA depth - 1, sTabTab -#define FDT_DUMP_PROPS +//#define FDT_DUMP_NODES +//#define FDT_DUMP_PROPS //#define FDT_DUMP_PROP_VALUES @@ -79,6 +80,7 @@ void dump_fdt(const void *fdt) dprintf("fdt_size_dt_strings: %d\n", fdt_size_dt_strings(fdt)); dprintf("fdt_size_dt_struct: %d\n", fdt_size_dt_struct(fdt)); +#ifdef FDT_DUMP_NODES dprintf("fdt tree:\n"); while ((node = fdt_next_node(fdt, node, &depth)) >= 0) { @@ -103,6 +105,7 @@ void dump_fdt(const void *fdt) } #endif } +#endif }