[U-Boot] [PATCH v3] mkimage: add "-V" option to print version information
Kim Phillips
kim.phillips at freescale.com
Sat Feb 12 00:11:17 CET 2011
On Fri, 11 Feb 2011 23:41:43 +0100
Wolfgang Denk <wd at 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
More information about the U-Boot
mailing list