public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 11/20] ARM: SPL: Clean up spl.c / spl_nand.c slightly
Date: Mon, 27 Aug 2012 13:17:36 -0700	[thread overview]
Message-ID: <503BD5E0.2020001@ti.com> (raw)
In-Reply-To: <20120827193450.GC3322@Hardy>

On 08/27/2012 12:34 PM, Sughosh Ganu wrote:
> On Fri Aug 24, 2012 at 04:58:25PM -0700, Tom Rini wrote:
>> - Remove includes we don't need
>> - Switch some printf statements to puts
>> - Convert some printf statements to debug, introduce new puts statements
>>   - In most cases saying just "No mkimage signature, assuming
>>     u-boot.bin" or similar is sufficient.  This also means the non-DEBUG
>>     case doesn't need printf, in the core of SPL.
>>   - The other case here is that PLAIN_VERSION provided what we wanted
>>     already, so just use it.
>>
>> Signed-off-by: Tom Rini <trini@ti.com>
>> ---
> 
> <snip>
> 
>> @@ -99,9 +96,9 @@ void spl_parse_image_header(const struct image_header *header)
>>  			spl_image.name, spl_image.load_addr, spl_image.size);
>>  	} else {
>>  		/* Signature not found - assume u-boot.bin */
>> -		printf("mkimage signature not found - ih_magic = %x\n",
>> +		puts("mkimage signature not found, assuming u-boot.bin ..\n");
> 
> Just a nit. Can the above be made a debug statement instead, like how
> it was earlier. I guess it's a bit superfluous -- also the other case
> just has a debug. Don't have a strong opinion about this though, just
> find it a bit annoying that this gets printed at every boot :).

I've of two minds here.  On the one hand, in the omap-common version we
always had a print here and part of the point is that you ought to be
writing u-boot.img.  On the other hand, making this a debug saves us
space :)

-- 
Tom

  reply	other threads:[~2012-08-27 20:17 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 23:58 [U-Boot] [PATCH v4 0/20] ARM: SPL: Make more generic, merge DaVinci and OMAP Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 01/20] Makefile: Move SPL files to clobber, remove from clean Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 02/20] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 03/20] omap-common: SPL: Add CONFIG_SPL_DISPLAY_PRINT / spl_display_print() Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 04/20] omap-common: Fix typo in save_boot_params() in lowlevel_init.S Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 05/20] ARM: SPL: Rename omap_boot_device to spl_boot_device Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 06/20] ARM: SPL: Rename omap_boot_mode to spl_boot_mode() Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 07/20] ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 08/20] ARM: SPL: Only call mem_malloc_init if configured Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 09/20] ARM: SPL: Add <asm/spl.h> and <asm/arch/spl.h> Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 10/20] ARM: SPL: Make spl_mmc.c more generic Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 11/20] ARM: SPL: Clean up spl.c / spl_nand.c slightly Tom Rini
2012-08-27 19:34   ` Sughosh Ganu
2012-08-27 20:17     ` Tom Rini [this message]
2012-08-24 23:58 ` [U-Boot] [PATCH v4 12/20] ARM: SPL: Start hooking in the current SPI SPL support Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 13/20] ARM: SPL: Move gpmc_init() to spl_board_init() Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 14/20] SPL: Move the omap SPL framework to common/spl Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 15/20] SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 16/20] SPL: do not use fix value for u-boot size Tom Rini
2012-08-27 19:18   ` Sughosh Ganu
2012-08-27 20:14     ` Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 17/20] ARM: SPL: Convert davinci to CONFIG_SPL_FRAMEWORK Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 18/20] da850: Add README.da850 Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c Tom Rini
2012-08-25  0:09   ` Scott Wood
2012-08-27 14:37     ` Tom Rini
2012-08-27 16:16       ` Scott Wood
2012-08-27 17:07         ` Tom Rini
2012-08-27 17:14           ` Scott Wood
2012-08-27 17:50             ` Tom Rini
2012-08-27 18:02               ` Scott Wood
2012-08-27 19:08                 ` Tom Rini
2012-08-27 22:04                   ` Tom Rini
2012-08-24 23:58 ` [U-Boot] [PATCH v4 20/20] SPL: SPI: Enhance spi_spl_load to match the other load functions Tom Rini
2012-08-27 19:02 ` [U-Boot] [PATCH v4 0/20] ARM: SPL: Make more generic, merge DaVinci and OMAP Sughosh Ganu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=503BD5E0.2020001@ti.com \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox