ioat/kperf: -h option has no argument

Fix the getopt string for the -h switch so that it does not expect an
argument.

Change-Id: I8ea86018d6ee2c61ad698eead9718b2babfe6791
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-01-23 17:31:48 -07:00 committed by Jim Harris
parent c6ddd1b894
commit 3b3060f14b

View File

@ -222,7 +222,7 @@ int main(int argc, char *argv[])
}
ring_size = 1UL << order;
while ((op = getopt(argc, argv, "h:n:q:s:t:")) != -1) {
while ((op = getopt(argc, argv, "hn:q:s:t:")) != -1) {
switch (op) {
case 'n':
threads = atoi(optarg);