Changeset 4265


Ignore:
Timestamp:
01/13/10 02:16:32 (3 years ago)
Author:
sam
Message:

Add informative messages about why we exit the main loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r4264 r4265  
    485485        if(opts->maxcrashes && opts->crashes >= opts->maxcrashes 
    486486            && opts->nchild == 0) 
    487             break; 
     487        { 
     488            if(opts->verbose) 
     489                fprintf(stderr, 
     490                        "zzuf: maximum crash count reached, exiting\n"); 
     491            break; 
     492        } 
    488493 
    489494        if(opts->maxtime && _zz_time() - opts->starttime >= opts->maxtime 
    490495            && opts->nchild == 0) 
    491             break; 
     496        { 
     497            if(opts->verbose) 
     498                fprintf(stderr, 
     499                        "zzuf: maximum running time reached, exiting\n"); 
     500            break; 
     501        } 
    492502    } 
    493503 
Note: See TracChangeset for help on using the changeset viewer.