diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-09 02:09:14 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-09 02:09:14 -0500 |
| commit | d9d6139231719aeee09e8ef90d247784756a1aeb (patch) | |
| tree | 4fa0fb8c6bada6b7018673484aa013db3b2631c5 /src/crunch.c | |
| parent | 818fcfb56c658017765eafb2078116392d13aa76 (diff) | |
| download | alftools-d9d6139231719aeee09e8ef90d247784756a1aeb.tar.gz | |
alf: Make -v do what -vv did, and -vv do what -vvv did. Also, cosmetics.
Diffstat (limited to 'src/crunch.c')
| -rw-r--r-- | src/crunch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crunch.c b/src/crunch.c index b450ae0..fc4d6e9 100644 --- a/src/crunch.c +++ b/src/crunch.c @@ -130,7 +130,7 @@ void append_bit(int bit) { void store_token(int tok) { int mask; - if(opt_verbose > 2) { + if(opt_verbose > 1) { printf("<%d >%d:%d #%d\n", in_pos, output_len, out_bitpos, tok); } @@ -200,11 +200,11 @@ void make_token(token_t *oldtok, u8 newchr) { /* if the token table is full, reset it. basically start over like we would with a new file. */ if(curr_token == max_token) { - if(opt_verbose > 2) { + if(opt_verbose > 1) { printf("\ntoken %d won't fit in %d bits, ", max_token, token_bits); } if(token_bits == MAX_BITS) { - if(opt_verbose > 2) { + if(opt_verbose > 1) { printf("resetting token_bits to %d\n", INITIAL_BITS); printf("token table is full, clearing, old contents:\n"); dump_tokens(); @@ -215,7 +215,7 @@ void make_token(token_t *oldtok, u8 newchr) { return; /* since we're starting over, *don't* make a token */ } else { token_bits++; - if(opt_verbose > 2) { + if(opt_verbose > 1) { printf("token_bits increased to %d\n", token_bits); } } @@ -253,7 +253,7 @@ void crunch(void) { store_token(TOK_END); if(out_bitpos) inc_output_len(); - if(opt_verbose > 2) { + if(opt_verbose > 1) { printf("\nfinal token table contents:\n"); dump_tokens(); } |
