badblocks: print a more explanatory message when a parameter is too large
Before:
$ misc/badblocks -w -b
4294967296 -c 1 /tmp/testfile.bin
misc/badblocks: invalid block size -
4294967296
After:
$ misc/badblocks -w -b
4294967296 -c 1 /tmp/testfile.bin
misc/badblocks: block size too large -
4294967296
The original error is retained for invalid arguments, e.g.:
$ misc/badblocks -w -b foo -c 1 /tmp/testfile.bin
misc/badblocks: invalid block size - foo
Signed-off-by: Corey Hickey <bugfood-c@fatooh.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>