From 73f897193eb3df738573cf6187999942a307598a Mon Sep 17 00:00:00 2001 From: philsmd Date: Sun, 6 Mar 2016 17:25:05 +0100 Subject: [PATCH] show autotuned kernel accel and kernel loop values only when debugging --- src/oclHashcat.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 8d78047..397d24c 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -3049,9 +3049,24 @@ static void autotune (hc_device_param_t *device_param) device_param->kernel_power = kernel_power; - if (data.quiet == 0) log_info ("Device #%u: autotuned kernel-accel to %u", device_param->device_id + 1, kernel_accel); - if (data.quiet == 0) log_info ("Device #%u: autotuned kernel-loops to %u", device_param->device_id + 1, kernel_loops); - if (data.quiet == 0) log_info (""); + #ifdef DEBUG + + if (data.quiet == 0) + { + clear_prompt (); + + log_info ("Device #%u: autotuned kernel-accel to %u\n" + "Device #%u: autotuned kernel-loops to %u\n", + device_param->device_id + 1, + kernel_accel, + device_param->device_id + 1, + kernel_loops); + + fprintf (stdout, "%s", PROMPT); + fflush (stdout); + } + + #endif } static void run_cracker (hc_device_param_t *device_param, const uint pws_cnt) -- 2.25.1