need more work

This commit is contained in:
tTh 2023-06-29 14:29:59 +02:00
parent 2ff17fc54b
commit 72cb5aa0f6

View File

@ -153,8 +153,12 @@ switch (nbargs) {
fname = argv[optind];
if (verbosity>1) fprintf(stderr, "*** mkfimg *** %s %s *** pid %ld\n",
if (verbosity>1) {
fprintf(stderr, "*** mkfimg *** %s %s *** pid %ld\n",
__DATE__, __TIME__, (long)getpid());
fimg_print_version(0);
}
if (verbosity) fprintf(stderr, "::: %s is making '%s' %dx%d, type %d\n",
argv[0], fname, width, height, type);
@ -166,6 +170,8 @@ if (foo) {
exit(3);
}
/* NO ERROR CONTROL ? WTF ? */
switch(type) {
default:
case T_BLACK: fimg_clear(&fimg); break;
@ -181,8 +187,12 @@ switch(type) {
case -1: exit(1);
}
if (verbosity > 1) fprintf(stderr, "%s: end of switch\n", __func__);
/* NO ERROR CONTROL ? WTF ? */
if (wrmdata) {
// fprintf(stderr, "%s: warning, metadata is bogus\n", argv[0]);
fprintf(stderr, "%s: warning, metadata is bogus\n", argv[0]);
(void)fimg_default_metadata(&metadata, 9);
sprintf(metadata.idcam, "mkfimg (libv %d)", FIMG_VERSION);
foo = fimg_dumpmd_to_file(&fimg, fname, &metadata, 0);