fix assorted unused code and wrong format specs found by cppchekc (bug 6716)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-11-29 16:43:33 +01:00
parent 1a7256ac38
commit 9b2a9f0210
20 changed files with 25 additions and 39 deletions

View File

@ -153,7 +153,7 @@ extern int optind;
void usage(char *prog)
{
fprintf(stderr, "Usage: %s [-f blkid_file] [-m debug_mask]\n", prog);
fprintf(stderr, "\tList all devices and exit\n", prog);
fprintf(stderr, "\tList all devices and exit\n");
exit(1);
}
@ -176,7 +176,7 @@ int main(int argc, char **argv)
case 'm':
blkid_debug_mask = strtoul (optarg, &tmp, 0);
if (*tmp) {
fprintf(stderr, "Invalid debug mask: %d\n",
fprintf(stderr, "Invalid debug mask: %s\n",
optarg);
exit(1);
}