[U-Boot] [RFC] bootm: Add sub commands

Kumar Gala galak at kernel.crashing.org
Thu Sep 18 18:32:01 CEST 2008


On Sep 18, 2008, at 1:54 AM, Wolfgang Denk wrote:

>> +int do_bootm_subcommand (cmd_tbl_t *cmdtp, int flag, int argc,  
>> char *argv[])
>> +{
>> +	int ret = 0;
>> +
>> +	/* start */
>> +	if (argv[1][0] == 's') {
>
> I think just matching on the first letter is to restrictive; we'll end
> up with artificical command "names" that nobody can remember.

I'm happy to move to using strncmp, but I agree with Jerry that other  
subcommand do the shortest match possible.

- k


More information about the U-Boot mailing list