is it "crc" or "crc32"?

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Jul 6 23:41:05 PDT 2014


On Jul 7, 2014, at 5:27 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:

> 
> 
>  the source file commands/crc.c has a very confusing tail end, which
> generates two partial entries for the sphinx docs:
> 
> BAREBOX_CMD_HELP_START(crc)
this is just the struct name
> BAREBOX_CMD_HELP_TEXT("Calculate a CRC32 checksum of a memory area.")
> BAREBOX_CMD_HELP_TEXT("")
> BAREBOX_CMD_HELP_TEXT("Options:")
> BAREBOX_CMD_HELP_OPT ("-f FILE", "Use file instead of memory.")
> #ifdef CONFIG_CMD_CRC_CMP
> BAREBOX_CMD_HELP_OPT ("-F FILE", "Use file to compare.")
> #endif
> BAREBOX_CMD_HELP_OPT ("-v CRC",  "Verify")
> BAREBOX_CMD_HELP_OPT ("-V FILE", "Verify with CRC read from FILE")
> BAREBOX_CMD_HELP_END
> 
> BAREBOX_CMD_START(crc32)   <-- ????
> 
>  the first command definition refers to "crc", but the second one
> refers to "crc32". is that correct? what does it mean?

its crc32
> 
> rday
> 
> -- 
> 
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                        http://crashcourse.ca
> 
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox




More information about the barebox mailing list