[U-Boot] [PATCH] sf: move useful messages from debug to printf

Wolfgang Denk wd at denx.de
Thu Apr 29 10:15:35 CEST 2010


Dear Mike Frysinger,

In message <1272516050-17920-1-git-send-email-vapier at gentoo.org> you wrote:
> At the moment, the default SPI flash subsystem is quite terse.  Errors and
> successes both result in a generic message.  So move the useful errors and
> useful successes to printf output by default.
...
> -	debug("SF: Detected %s with page size %lu, total %u bytes\n",
> +	printf("SF: Detected %s with page size %lu, total %u bytes\n",
>  			params->name, page_size, asf->flash.size);

When we touch this code, we might as well make the output more
readable and print the size in easier to parse units using
print_size() - see Timur's patches from 13 Ap 2010,
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/77288

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is your destiny.                                     - Darth Vader


More information about the U-Boot mailing list