[U-Boot] [PATCH] mflash: use common cmd_usage function

Mike Frysinger vapier at gentoo.org
Thu Jul 29 17:16:24 CEST 2010


On Thursday, July 29, 2010 07:28:13 Detlev Zundel wrote:
> > --- a/common/cmd_mgdisk.c
> > +++ b/common/cmd_mgdisk.c
> > @@ -54,7 +54,7 @@ int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int
> > argc, char *argv[])
> > 
> >  			return 1;
> >  		
> >  		break;
> >  	
> >  	default:
> > -		printf("Usage:\n%s\n", cmdtp->usage);
> > +		cmd_usage(cmdtp);
> > 
> >  		return 1;
> >  	
> >  	}
> >  	return 0;
> 
> With commit 47e26b1bf91ddef69f4a3892815c857db094cef9 [cmd_usage():
> simplify return code handling] I suppose this should be directly changed
> to a return cmd_usage.

hadnt noticed that.  ill send updated patches; thanks.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100729/317d7522/attachment.pgp 


More information about the U-Boot mailing list