From: Wolfgang Denk Date: Thu, 29 Apr 2010 10:15:35 +0200 Subject: [U-Boot] [PATCH] sf: move useful messages from debug to printf In-Reply-To: <1272516050-17920-1-git-send-email-vapier@gentoo.org> References: <1272516050-17920-1-git-send-email-vapier@gentoo.org> Message-ID: <20100429081535.4C486AFC6AC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1272516050-17920-1-git-send-email-vapier@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