From b35f72f9c274bb91ac42751e0224c0e8ec9295d3 Mon Sep 17 00:00:00 2001 From: tth Date: Wed, 26 Feb 2020 12:06:11 +0100 Subject: [PATCH] better verbose messages --- tools/fimg2png.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/fimg2png.c b/tools/fimg2png.c index b546c1e2..a51b57e9 100644 --- a/tools/fimg2png.c +++ b/tools/fimg2png.c @@ -28,7 +28,8 @@ if (foo) { } if (verbosity) { - fprintf(stderr, "image '%s' is %d x %d %s\n", + fprintf(stderr, "%s: image '%s' is %d x %d %s\n", + __func__, srcname, infos[0], infos[1], fimg_str_type(infos[2])); } @@ -45,7 +46,8 @@ if (grisaille) { foo = fimg_save_as_png(&fimg, dstname, 0); if (foo) { - fprintf(stderr, "saving as png '%s' -> %d\n", dstname, foo); + fprintf(stderr, "%s: saving as png '%s' -> %d\n", __func__, + dstname, foo); return -1; }