All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] The fdt boardsetup command criteria	was not unique
Date: Mon, 09 Jun 2008 14:52:49 -0400	[thread overview]
Message-ID: <484D7C01.7050606@ge.com> (raw)
In-Reply-To: <20080609181624.GB2907@loki.buserror.net>

Scott Wood wrote:
> On Sat, Jun 07, 2008 at 12:29:26PM -0400, Jerry Van Baren wrote:
>> diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
>> index ede65ae..8592128 100644
>> --- a/common/cmd_fdt.c
>> +++ b/common/cmd_fdt.c
>> @@ -403,7 +403,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
>>  	}
>>  #ifdef CONFIG_OF_BOARD_SETUP
>>  	/* Call the board-specific fixup routine */
>> -	else if (argv[1][0] == 'b')
>> +	else if ((argv[1][0] == 'b') && (argv[1][1] == 'o') &&
>> +		   (argv[1][2] == 'a'))
>>  		ft_board_setup(fdt, gd->bd);
>>  #endif
> 
> strncmp() would be clearer...
> 
> -Scott

Yeah, but that is the way the rest of them are.  :-/  Hmmm, looking at 
the other command/cmd_*.c files, it looks like my parsing 
character-by-character is in the minority vs. strncmp().

Best regards,
gvb

  reply	other threads:[~2008-06-09 18:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 16:29 [U-Boot-Users] [PATCH] The fdt boardsetup command criteria was not unique Jerry Van Baren
2008-06-09 18:16 ` Scott Wood
2008-06-09 18:52   ` Jerry Van Baren [this message]
2008-06-10  1:05   ` [U-Boot-Users] [PATCH] Use strncmp() for the fdt command Jerry Van Baren

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=484D7C01.7050606@ge.com \
    --to=gerald.vanbaren@ge.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.