From: Mike Frysinger Date: Thu, 29 Jul 2010 11:16:24 -0400 Subject: [U-Boot] [PATCH] mflash: use common cmd_usage function In-Reply-To: References: <1279878031-17230-1-git-send-email-vapier@gentoo.org> Message-ID: <201007291116.27246.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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