From fe3bc9d64c7ef3f7b1dbfd2b54e0be5e0faac525 Mon Sep 17 00:00:00 2001 From: tTh Date: Sun, 31 Mar 2024 00:15:47 +0100 Subject: [PATCH] better messages --- Fonderie/interpolator.c | 3 ++- Fonderie/single.c | 2 +- Fonderie/singlepass.c | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index 4719bdb5..873a3fbc 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -176,7 +176,8 @@ for (idx=0; idx %d\n", cptr, foo); + fprintf(stderr, "\n%s: load %s from dump -> %d\n", __func__, + cptr, foo); continue; } diff --git a/Fonderie/single.c b/Fonderie/single.c index cbb6e12b..ea17aa50 100644 --- a/Fonderie/single.c +++ b/Fonderie/single.c @@ -51,7 +51,7 @@ if (foo) { return -2; } if (S_IFDIR != (stbuf.st_mode & S_IFMT)) { - fprintf(stderr, "! %s must be a directory\n", dest); + fprintf(stderr, "%s: %s must be a directory\n", __func__, dest); return -3; } diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index ee53161e..ed1af820 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -84,6 +84,10 @@ for (idx=0; idx 1) { + fprintf(stderr, "%s: image '%s' loaded in %p\n", + __func__, fname, &image); + } if (foo) { fprintf(stderr, "get image -> %d\n", foo); return -1;