[U-Boot] [PATCH v3] mkimage: add "-V" option to print version information

Kim Phillips
2011-02-11T23:11:17Z

On Fri, 11 Feb 2011 23:41:43 +0100
Wolfgang Denk <wd@denx.de> wrote:

> + case 'V':
> + /*
> + * Skip the "U-Boot " part in
> + * U_BOOT_VERSION by adding 7
> + */
> + printf("mkimage version %s\n",
> + U_BOOT_VERSION + 7);

I'd have done it without magic nor comments as

U_BOOT_VERSION[sizeof("U-Boot ") + 1]

or even

U_BOOT_VERSION[strlen("U-Boot ")]

Kim