diff options
| author | J08nY | 2017-10-04 17:20:11 +0200 |
|---|---|---|
| committer | J08nY | 2017-10-04 17:20:11 +0200 |
| commit | 53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d (patch) | |
| tree | 1f991da8ee2ac555c37f7b73d36233cf28e4164f | |
| parent | 42576337198e76fa0f5dad74800237254a0fda35 (diff) | |
| download | ecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.tar.gz ecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.tar.zst ecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.zip | |
| -rw-r--r-- | src/exhaustive/exhaustive.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c index 30d2c47..5011490 100644 --- a/src/exhaustive/exhaustive.c +++ b/src/exhaustive/exhaustive.c @@ -271,24 +271,22 @@ int exhaustive_gen_retry(curve_t *curve, const config_t *cfg, } } - if (cfg->verbose) { - if (diff < 0) { - fprintf(verbose, "-"); - } else { - fprintf(verbose, "."); - } + if (diff < 0) { + verbose_log("-"); + } else { + verbose_log("."); } // unroll stack avma = stack_tops[new_state]; } else { // we are going forward, reset tries gen_tries[state] = 0; - if (cfg->verbose) fprintf(verbose, "+"); + verbose_log("+"); } state = new_state; } - if (cfg->verbose) fprintf(verbose, "\n"); + verbose_log("\n"); return 1; } |
