From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mkimage: add "-V" option to print version information
Date: Fri, 11 Feb 2011 22:55:06 +0100 [thread overview]
Message-ID: <4D55B03A.9030602@free.fr> (raw)
In-Reply-To: <1297426949-21865-1-git-send-email-wd@denx.de>
Wolfgang,
Please ignore my previous post on V1, I had not seen V2. My comment
holds, though:
Le 11/02/2011 13:22, Wolfgang Denk a ?crit :
> Signed-off-by: Wolfgang Denk<wd@denx.de>
> ---
> v2: fix missing argument to printf() call.
>
> tools/mkimage.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/tools/mkimage.c b/tools/mkimage.c
> index f5859d7..127be57 100644
> --- a/tools/mkimage.c
> +++ b/tools/mkimage.c
> @@ -23,6 +23,7 @@
>
> #include "mkimage.h"
> #include<image.h>
> +#include<version.h>
>
> static void copy_file(int, const char *, int);
> static void usage(void);
> @@ -246,6 +247,10 @@ main (int argc, char **argv)
> case 'v':
> params.vflag++;
> break;
> + case 'V':
> + printf("mkimage version %s\n",
> + U_BOOT_VERSION + 7);
If that magic number 7 (and the addition, as well) has any reason, it
should at least be explained in a short comment.
> + exit(EXIT_SUCCESS);
> case 'x':
> params.xflag++;
> break;
> @@ -590,6 +595,8 @@ usage ()
> params.cmdname);
> fprintf (stderr, " %s [-D dtc_options] -f fit-image.its fit-image\n",
> params.cmdname);
> + fprintf (stderr, " %s -V ==> print version information and exit\n",
> + params.cmdname);
>
> exit (EXIT_FAILURE);
> }
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-02-11 21:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 8:56 [U-Boot] [PATCH] mkimage: add "-V" option to print version information Wolfgang Denk
2011-02-11 12:22 ` [U-Boot] [PATCH v2] " Wolfgang Denk
2011-02-11 21:55 ` Albert ARIBAUD [this message]
2011-02-11 22:35 ` Wolfgang Denk
2011-02-11 21:52 ` [U-Boot] [PATCH] " Albert ARIBAUD
2011-02-11 22:41 ` [U-Boot] [PATCH v3] " Wolfgang Denk
2011-02-11 23:11 ` Kim Phillips
2011-02-12 6:47 ` Albert ARIBAUD
2011-02-12 9:29 ` Wolfgang Denk
2011-02-12 22:04 ` Kim Phillips
2011-02-12 9:37 ` Wolfgang Denk
2011-02-12 22:17 ` Kim Phillips
2011-02-12 23:31 ` Wolfgang Denk
2011-02-12 9:37 ` [U-Boot] [PATCH v4] " Wolfgang Denk
2011-02-12 23:13 ` Kim Phillips
2011-02-12 23:35 ` Wolfgang Denk
2011-02-13 0:08 ` Kim Phillips
2011-04-12 20:37 ` Wolfgang Denk
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=4D55B03A.9030602@free.fr \
--to=albert.aribaud@free.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox