diff --git a/tools/fimg2pnm.c b/tools/fimg2pnm.c index 3296fe2..0bfb480 100644 --- a/tools/fimg2pnm.c +++ b/tools/fimg2pnm.c @@ -39,7 +39,7 @@ if (foo) { outptr = &fimg; /* safe default value */ if (to_gray) { - puts("converting to gray..."); + if (verbosity) puts("converting to gray..."); foo = fimg_create(&gris, fimg.width, fimg.height, FIMG_TYPE_GRAY); if (foo) { fprintf(stderr, "err create gray %d\n", foo); @@ -91,7 +91,7 @@ if (argc == 1) { while ((opt = getopt(argc, argv, "ghv")) != -1) { switch(opt) { - case 'g': to_gray = 1; + case 'g': to_gray = 1; break; case 'v': verbosity++; break; case 'h': help(1); exit(1); }