[U-Boot-Users] [PATCH 2/6] [libfdt] Fix compilation errors is fdt_support.c

Bartlomiej Sieka tur at semihalf.com
Wed Feb 20 18:20:02 CET 2008


From: Marian Balakowicz <m8 at semihalf.com>

fdt_support.c does not compile with the DEBUG enabled,
correct arguments passed to debug() calls.

Signed-off-by: Marian Balakowicz <m8 at semihalf.com>
---

 common/fdt_support.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/fdt_support.c b/common/fdt_support.c
index a13c140..628bbdd 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -418,7 +418,7 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop,
 {
 #if defined(DEBUG)
 	int i;
-	debug("Updating property '%s/%s' = ", node, prop);
+	debug("Updating property %s, path '%s' = ", prop, path);
 	for (i = 0; i < len; i++)
 		debug(" %.2x", *(u8*)(val+i));
 	debug("\n");
@@ -444,7 +444,7 @@ void do_fixup_by_prop(void *fdt,
 	int off;
 #if defined(DEBUG)
 	int i;
-	debug("Updating property '%s/%s' = ", node, prop);
+	debug("Updating property '%s', pname '%s' = ", prop, pname);
 	for (i = 0; i < len; i++)
 		debug(" %.2x", *(u8*)(val+i));
 	debug("\n");
@@ -471,7 +471,7 @@ void do_fixup_by_compat(void *fdt, const char *compat,
 	int off = -1;
 #if defined(DEBUG)
 	int i;
-	debug("Updating property '%s/%s' = ", node, prop);
+	debug("Updating property '%s', compat '%s' = ", prop, compat);
 	for (i = 0; i < len; i++)
 		debug(" %.2x", *(u8*)(val+i));
 	debug("\n");





More information about the U-Boot mailing list