diff --git a/tools/mkfimg.c b/tools/mkfimg.c index 392b4e6..6c36b4f 100644 --- a/tools/mkfimg.c +++ b/tools/mkfimg.c @@ -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) { 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);