This should have been part of commit
v8.32-113-gb73b9fcb1
* doc/coreutils.texi (cksum invocation): Add the --debug description.
* src/cksum.c (usage): Likewise.
(main): Also give explicit indication when using generic hardware.
compatible with the BSD or System V @command{sum} algorithms (see the
previous section); it is more robust.
-The only options are @option{--help} and @option{--version}. @xref{Common
-options}.
+The program accepts the following options. Also see @ref{Common options}.
+
+@table @samp
+
+@item --debug
+@opindex --debug
+Output extra information to stderr, like the checksum implementation being used.
+@end table
@exitstatus
fputs (_("\
Print CRC checksum and byte counts of each FILE.\n\
\n\
+"), stdout);
+ fputs (_("\
+ --debug indicate which implementation used\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
# if USE_PCLMUL_CRC32
if (pclmul_supported ())
cksum_fp = cksum_pclmul;
+ else
# endif /* USE_PCLMUL_CRC32 */
+ if (debug)
+ error (0, 0, "%s", _("using generic hardware support"));
if (optind == argc)
ok = cksum ("-", false);