Skip to content

Commit

Permalink
-v does not take an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-frigo committed Feb 25, 2006
1 parent dca8aae commit 5c1e2c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tools/fftw-wisdom.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int verbose;

static void do_problem(bench_problem *p)
{
if (verbose > 0)
if (verbose)
printf("PLANNING PROBLEM: %s\n", p->pstring);
/* BENCH_ASSERT(can_do(p)); */
problem_alloc(p);
Expand Down Expand Up @@ -71,7 +71,7 @@ static struct my_option options[] =
{
{"help", NOARG, 'h'},
{"version", NOARG, 'V'},
{"verbose", OPTARG, 'v'},
{"verbose", NOARG, 'v'},

{"canonical", NOARG, 'c'},
{"time-limit", REQARG, 't'},
Expand Down Expand Up @@ -198,10 +198,7 @@ int bench_main(int argc, char *argv[])
break;

case 'v':
if (my_optarg)
verbose = atoi(my_optarg);
else
++verbose;
verbose = 1;
break;

case 'c':
Expand Down

0 comments on commit 5c1e2c0

Please sign in to comment.