Changeset 1710
- Timestamp:
- 01/25/07 15:56:18 (6 years ago)
- File:
-
- 1 edited
-
zzuf/trunk/src/zzuf.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/zzuf.c
r1709 r1710 83 83 static void *get_entry(char const *); 84 84 #endif 85 static void finfo(FILE *, struct opts * );85 static void finfo(FILE *, struct opts *, uint32_t); 86 86 #if defined HAVE_REGEX_H 87 87 static char *merge_regex(char *, char *); … … 426 426 { 427 427 _zz_md5_fini(md5sum, ctx); 428 finfo(stdout, opts );428 finfo(stdout, opts, opts->seed); 429 429 fprintf(stdout, "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x" 430 430 "%.02x%.02x%.02x%.02x%.02x%.02x\n", md5sum[0], md5sum[1], … … 439 439 } 440 440 441 static void finfo(FILE *fp, struct opts *opts )441 static void finfo(FILE *fp, struct opts *opts, uint32_t seed) 442 442 { 443 443 if(opts->minratio == opts->maxratio) 444 fprintf(fp, "zzuf[s=%i,r=%g]: ", opts->seed, opts->minratio);444 fprintf(fp, "zzuf[s=%i,r=%g]: ", seed, opts->minratio); 445 445 else 446 fprintf(fp, "zzuf[s=%i,r=%g:%g]: ", opts->seed,446 fprintf(fp, "zzuf[s=%i,r=%g:%g]: ", seed, 447 447 opts->minratio, opts->maxratio); 448 448 } … … 613 613 if(opts->verbose) 614 614 { 615 finfo(stderr, opts );615 finfo(stderr, opts, opts->child[i].seed); 616 616 fprintf(stderr, "launched %s\n", opts->newargv[0]); 617 617 } … … 641 641 if(opts->verbose) 642 642 { 643 finfo(stderr, opts );643 finfo(stderr, opts, opts->child[i].seed); 644 644 fprintf(stderr, "data output exceeded, sending SIGTERM\n"); 645 645 } … … 655 655 if(opts->verbose) 656 656 { 657 finfo(stderr, opts );657 finfo(stderr, opts, opts->child[i].seed); 658 658 fprintf(stderr, "running time exceeded, sending SIGTERM\n"); 659 659 } … … 672 672 if(opts->verbose) 673 673 { 674 finfo(stderr, opts );674 finfo(stderr, opts, opts->child[i].seed); 675 675 fprintf(stderr, "not responding, sending SIGKILL\n"); 676 676 } … … 702 702 if(opts->checkexit && WIFEXITED(status) && WEXITSTATUS(status)) 703 703 { 704 finfo(stderr, opts );704 finfo(stderr, opts, opts->child[i].seed); 705 705 fprintf(stderr, "exit %i\n", WEXITSTATUS(status)); 706 706 opts->crashes++; … … 710 710 && opts->child[i].status == STATUS_SIGTERM)) 711 711 { 712 finfo(stderr, opts );712 finfo(stderr, opts, opts->child[i].seed); 713 713 fprintf(stderr, "signal %i%s%s\n", 714 714 WTERMSIG(status), sig2str(WTERMSIG(status)), … … 726 726 { 727 727 _zz_md5_fini(md5sum, opts->child[i].ctx); 728 finfo(stdout, opts );728 finfo(stdout, opts, opts->child[i].seed); 729 729 fprintf(stdout, "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x" 730 730 "%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n", md5sum[0],
Note: See TracChangeset
for help on using the changeset viewer.
