From 21a6d792d5db8fa36820426eee04637d7ebf02c1 Mon Sep 17 00:00:00 2001 From: tth Date: Sun, 29 Sep 2019 00:12:31 +0200 Subject: [PATCH] do not be verbose on that... --- lib/fimg-pnm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/fimg-pnm.c b/lib/fimg-pnm.c index 16656a65..1d60af60 100644 --- a/lib/fimg-pnm.c +++ b/lib/fimg-pnm.c @@ -164,10 +164,12 @@ switch(head->type) { fprintf(fp, "%s\n%d %d\n", code, head->width, head->height); if ( flags & 1 ) { - fprintf(stderr, "%s using fval/count %f %d -> %f\n", __func__, - head->fval, head->count, - head->fval * head->count); fk = (head->fval * head->count) / 65535.0; + if (verbosity > 1) { + fprintf(stderr, "%s using fval/count %f %d -> %f\n", + __func__, + head->fval, head->count, fk); + } fprintf(fp, "# fval/count %f %d\n", head->fval, head->count); } else {