need more work
This commit is contained in:
parent
2ff17fc54b
commit
72cb5aa0f6
@ -153,8 +153,12 @@ switch (nbargs) {
|
|||||||
|
|
||||||
fname = argv[optind];
|
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());
|
__DATE__, __TIME__, (long)getpid());
|
||||||
|
fimg_print_version(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (verbosity) fprintf(stderr, "::: %s is making '%s' %dx%d, type %d\n",
|
if (verbosity) fprintf(stderr, "::: %s is making '%s' %dx%d, type %d\n",
|
||||||
argv[0], fname, width, height, type);
|
argv[0], fname, width, height, type);
|
||||||
|
|
||||||
@ -166,6 +170,8 @@ if (foo) {
|
|||||||
exit(3);
|
exit(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* NO ERROR CONTROL ? WTF ? */
|
||||||
|
|
||||||
switch(type) {
|
switch(type) {
|
||||||
default:
|
default:
|
||||||
case T_BLACK: fimg_clear(&fimg); break;
|
case T_BLACK: fimg_clear(&fimg); break;
|
||||||
@ -181,8 +187,12 @@ switch(type) {
|
|||||||
case -1: exit(1);
|
case -1: exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verbosity > 1) fprintf(stderr, "%s: end of switch\n", __func__);
|
||||||
|
|
||||||
|
/* NO ERROR CONTROL ? WTF ? */
|
||||||
|
|
||||||
if (wrmdata) {
|
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);
|
(void)fimg_default_metadata(&metadata, 9);
|
||||||
sprintf(metadata.idcam, "mkfimg (libv %d)", FIMG_VERSION);
|
sprintf(metadata.idcam, "mkfimg (libv %d)", FIMG_VERSION);
|
||||||
foo = fimg_dumpmd_to_file(&fimg, fname, &metadata, 0);
|
foo = fimg_dumpmd_to_file(&fimg, fname, &metadata, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user