forked from tTh/FloatImg
better messages
This commit is contained in:
parent
346ea08aba
commit
fe3bc9d64c
@ -176,7 +176,8 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
|||||||
(int)globbuf.gl_pathc, cptr);
|
(int)globbuf.gl_pathc, cptr);
|
||||||
foo = fimg_load_from_dump(cptr, &B);
|
foo = fimg_load_from_dump(cptr, &B);
|
||||||
if (foo) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ if (foo) {
|
|||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
if (S_IFDIR != (stbuf.st_mode & S_IFMT)) {
|
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;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +84,10 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
|||||||
else {
|
else {
|
||||||
foo = fimg_load_from_dump(fname, &image);
|
foo = fimg_load_from_dump(fname, &image);
|
||||||
}
|
}
|
||||||
|
if (verbosity > 1) {
|
||||||
|
fprintf(stderr, "%s: image '%s' loaded in %p\n",
|
||||||
|
__func__, fname, &image);
|
||||||
|
}
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "get image -> %d\n", foo);
|
fprintf(stderr, "get image -> %d\n", foo);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user