better messages

This commit is contained in:
tTh 2024-03-31 00:15:47 +01:00
parent 346ea08aba
commit fe3bc9d64c
3 changed files with 7 additions and 2 deletions

View File

@ -176,7 +176,8 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
(int)globbuf.gl_pathc, cptr);
foo = fimg_load_from_dump(cptr, &B);
if (foo) {
fprintf(stderr, "load %s from dump -> %d\n", cptr, foo);
fprintf(stderr, "\n%s: load %s from dump -> %d\n", __func__,
cptr, foo);
continue;
}

View File

@ -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;
}

View File

@ -84,6 +84,10 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
else {
foo = fimg_load_from_dump(fname, &image);
}
if (verbosity > 1) {
fprintf(stderr, "%s: image '%s' loaded in %p\n",
__func__, fname, &image);
}
if (foo) {
fprintf(stderr, "get image -> %d\n", foo);
return -1;