From bbd8f065d8bfb891adf96b744cbafd474185f6b7 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 13 Jan 2010 01:16:32 +0000 Subject: [PATCH] Add informative messages about why we exit the main loop. --- src/zzuf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/zzuf.c b/src/zzuf.c index 0f294e4..d8931a4 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -484,11 +484,21 @@ int main(int argc, char *argv[]) if(opts->maxcrashes && opts->crashes >= opts->maxcrashes && opts->nchild == 0) + { + if(opts->verbose) + fprintf(stderr, + "zzuf: maximum crash count reached, exiting\n"); break; + } if(opts->maxtime && _zz_time() - opts->starttime >= opts->maxtime && opts->nchild == 0) + { + if(opts->verbose) + fprintf(stderr, + "zzuf: maximum running time reached, exiting\n"); break; + } } /* Clean up */