[U-Boot] [RFC PATCH v2 04/15] bootstage: Convert progress numbers 1-9 into enums

Mike Frysinger vapier at gentoo.org
Sun Jan 8 09:27:51 CET 2012


On Saturday 10 December 2011 16:07:56 Simon Glass wrote:
> --- a/include/bootstage.h
> +++ b/include/bootstage.h
>
>  enum bootstage_id {
> +	BOOTSTAGE_ID_START,
> +	BOOTSTAGE_ID_CHECK_MAGIC,	/* Checking image magic */
> +	BOOTSTAGE_ID_CHECK_HEADER,	/* Checking image header */
> +	BOOTSTAGE_ID_CHECK_CHECKSUM,	/* Checking image checksum */
> +	BOOTSTAGE_ID_CHECK_ARCH,	/* Checking architecture */

i know it's unlikely to ever change, but this would be good to be explicit:
	BOOTSTAGE_ID_START = 0,
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120108/233213f4/attachment.pgp>


More information about the U-Boot mailing list