Browse Source

more debug in verbose mode

master
tonton th 2 years ago
parent
commit
f7ff7e385a
  1. 4
      tools/mkfimg.c

4
tools/mkfimg.c

@ -111,7 +111,8 @@ if (type < 0) { @@ -111,7 +111,8 @@ if (type < 0) {
fname = argv[optind];
width = atoi(argv[optind+1]); height = atoi(argv[optind+2]);
if (verbosity) fprintf(stderr, "making '%s' %d x %d\n", fname, width, height);
if (verbosity) fprintf(stderr, "making '%s' %d x %d, type %d\n",
fname, width, height, type);
srand48(getpid() ^ time(NULL));
@ -130,6 +131,7 @@ switch(type) { @@ -130,6 +131,7 @@ switch(type) {
case T_HDEG_A: fimg_hdeg_a(&fimg, 1.0); break;
case T_VDEG_A: fimg_vdeg_a(&fimg, 1.0); break;
case T_TPAT0: fimg_test_pattern(&fimg, 0, fvalue); break;
case -1: exit(1);
}
foo = fimg_dump_to_file(&fimg, fname, 0);

Loading…
Cancel
Save