]> git.sur5r.net Git - u-boot/commitdiff
ARM: 926ejs: use debug() for misaligned addresses
authorStefano Babic <sbabic@denx.de>
Mon, 2 Apr 2012 06:18:49 +0000 (06:18 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:53:59 +0000 (14:53 +0200)
Misaligned warnings are useful to debug faulty drivers.
A misaligned warning is printed also when the driver
is correct - use debug() instead of printf().

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Albert Aribaud <albert.u.boot@aribaud.net>
CC: Mike Frysinger <vapier@gentoo.org>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
arch/arm/cpu/arm926ejs/cache.c

index 5b23e3a71b759db16dc7e14deab73b4c72d80aa8..4430578a81c1f7f1dd49f7f41413b50ad499dffd 100644 (file)
@@ -55,7 +55,7 @@ static int check_cache_range(unsigned long start, unsigned long stop)
                ok = 0;
 
        if (!ok)
-               printf("CACHE: Misaligned operation at range [%08lx, %08lx]\n",
+               debug("CACHE: Misaligned operation at range [%08lx, %08lx]\n",
                        start, stop);
 
        return ok;