This commit is contained in:
tth 2022-04-17 04:20:35 +02:00
parent 27e42a0ddd
commit 263e254980

View File

@ -77,8 +77,9 @@ puts("Usage:\tmkfimg [options] quux.fimg width height");
puts("\t-k N.N\tgive a float parameter"); puts("\t-k N.N\tgive a float parameter");
puts("\t-L\tlist howto make a pic"); puts("\t-L\tlist howto make a pic");
fputs("\t-t bla\thowto make the pic :\n\t\t | ", stdout); puts("\t-m\tadd faked metadata");
fputs("\t-t bla\thowto make the pic :\n\t\t | ", stdout);
for (foo=cc=0; types[foo].code; foo++) { for (foo=cc=0; types[foo].code; foo++) {
cc += printf("%s ", types[foo].name); cc += printf("%s ", types[foo].name);
if (cc>35) { cc=0; printf("\n\t\t | "); } if (cc>35) { cc=0; printf("\n\t\t | "); }
@ -179,7 +180,7 @@ switch(type) {
} }
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); (void)fimg_default_metadata(&metadata);
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);