From b8a4514773593042071348b00d87f075d21742a2 Mon Sep 17 00:00:00 2001 From: phyto Date: Wed, 7 Apr 2021 21:25:15 +0200 Subject: [PATCH] no more useless messages --- experiment/extracteur.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/experiment/extracteur.c b/experiment/extracteur.c index f343859c..4dff8854 100644 --- a/experiment/extracteur.c +++ b/experiment/extracteur.c @@ -34,9 +34,11 @@ int xs, ys, xd, yd; int count; float rgb[3]; -fimg_describe(in, "source"); -fimg_describe(out, "destination"); -print_rectangle(rect); +if (verbosity) { + fimg_describe(in, "source"); + fimg_describe(out, "destination"); + print_rectangle(rect); + } count = 0; for (yd=0; ydh; yd++) { @@ -53,7 +55,7 @@ for (yd=0; ydh; yd++) { } -fprintf(stderr, "%s: %d pix moved\n", __func__, count); +// fprintf(stderr, "%s: %d pix moved\n", __func__, count); return 0; } @@ -67,7 +69,7 @@ Rectangle zone; char *infile = "foo.fimg"; char *outfile = "out.fimg"; -verbosity = 1; +verbosity = 0; if (3 != argc) { fprintf(stderr, "usage\n\t %s infile.fimg outfile.???\n",