From f7ff7e385af136e4df8b7d5a3fdb14ac39148db5 Mon Sep 17 00:00:00 2001 From: tonton th Date: Fri, 29 May 2020 13:32:15 +0200 Subject: [PATCH] more debug in verbose mode --- tools/mkfimg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/mkfimg.c b/tools/mkfimg.c index 392b4e6f..6c36b4fb 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);