From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 27 Mar 2012 10:48:26 +0200 Subject: [U-Boot] [PATCHv5 1/7] mkenvimage: correct and clarify comments and error messages In-Reply-To: <1326497260-13864-1-git-send-email-david.wagner@free-electrons.com> References: <1326497260-13864-1-git-send-email-david.wagner@free-electrons.com> Message-ID: <20120327104826.4e04225e@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 14 Jan 2012 00:27:34 +0100 David Wagner wrote: > Also, don't split error messages over several lines as per a coding style > exception making them easier to grep. > > Signed-off-by: David Wagner > --- > tools/mkenvimage.c | 41 +++++++++++++++-------------------------- > 1 files changed, 15 insertions(+), 26 deletions(-) Applied to u-boot-staging/agust at denx.de with minor change. > @@ -118,7 +113,7 @@ int main(int argc, char **argv) > usage(prg); > return EXIT_SUCCESS; > case 'V': > - printf("%s version %s\n", prg, PLAIN_VERSION); > + printf("%s version %s\n", argv[0], PLAIN_VERSION); > return EXIT_SUCCESS; > case ':': > fprintf(stderr, "Missing argument for option -%c\n", I've dropped this hunk, since recently there was a patch to mkenvimage.c converting argv[0] to prg. Thanks, Anatolij