depmod: --symbol-prefix actually requires an argument
authorAndrey Mazo <mazo@telum.ru>
Wed, 12 Dec 2012 12:36:58 +0000 (16:36 +0400)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 13 Dec 2012 17:52:42 +0000 (15:52 -0200)
-P requires and uses an argument but its long counterpart --symbol-prefix does not:
depmod: option '--symbol-prefix' doesn't allow an argument

tools/depmod.c

index 682e662..f7d71f8 100644 (file)
@@ -63,7 +63,7 @@ static const struct option cmdopts[] = {
        { "verbose", no_argument, 0, 'v' },
        { "show", no_argument, 0, 'n' },
        { "dry-run", no_argument, 0, 'n' },
-       { "symbol-prefix", no_argument, 0, 'P' },
+       { "symbol-prefix", required_argument, 0, 'P' },
        { "warn", no_argument, 0, 'w' },
        { "map", no_argument, 0, 'm' }, /* deprecated */
        { "version", no_argument, 0, 'V' },