On Fri, 11 Feb 2011 23:41:43 +0100 Wolfgang Denk <w...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot