is it "crc" or "crc32"?

Robert P. J. Day rpjday at crashcourse.ca
Sun Jul 6 14:27:28 PDT 2014


  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)
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?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the barebox mailing list