aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-10-04 17:20:11 +0200
committerJ08nY2017-10-04 17:20:11 +0200
commit53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d (patch)
tree1f991da8ee2ac555c37f7b73d36233cf28e4164f
parent42576337198e76fa0f5dad74800237254a0fda35 (diff)
downloadecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.tar.gz
ecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.tar.zst
ecgen-53bdab0a3d0411bbdc092dc9c3ae5a0f8afa6c6d.zip
-rw-r--r--src/exhaustive/exhaustive.c14
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;
}