From e454404f9791975b95612080fd59847271c29fb6 Mon Sep 17 00:00:00 2001 From: tonton Th Date: Sun, 16 Feb 2020 21:28:20 +0100 Subject: [PATCH] better verbose display in fimgops --- tools/fimgops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/fimgops.c b/tools/fimgops.c index e7420fc5..d79542a1 100644 --- a/tools/fimgops.c +++ b/tools/fimgops.c @@ -84,8 +84,8 @@ switch (action) { case OP_SUB: foo = fimg_sub_3(A, B, D); break; case OP_MIX: - if (verbosity) fprintf(stderr, "fvalue is %f\n", - global_fvalue); + if (verbosity) fprintf(stderr, "%s: fvalue is %f\n", + __func__, global_fvalue); foo = fimg_interpolate(A, B, D, global_fvalue); break; case OP_MUL: @@ -147,7 +147,7 @@ if ((foo=fimg_create_from_dump(argv[optind+1], &srcB))) { exit(3); } -if (verbosity) { /* please, debug me */ +if (verbosity > 1) { /* please, debug me */ fimg_describe(&srcA, argv[optind]); fimg_describe(&srcB, argv[optind+1]); }