From 3e48db8206721d67c6db4c46bc9cd5e7ed1aad66 Mon Sep 17 00:00:00 2001 From: PenguinKeeper7 Date: Wed, 31 Jul 2024 15:40:09 +0100 Subject: [PATCH] Show all autotune setting changes in -b Previous behaviour was to only show the first autotune setting, this change makes it so it shows everything if it's changed as there's no reason to hide it and is safer to show everything that's changed --- src/user_options.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/user_options.c b/src/user_options.c index b1ed588f4..11e644929 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -2155,20 +2155,20 @@ void user_options_info (hashcat_ctx_t *hashcat_ctx) { event_log_info (hashcat_ctx, "* --kernel-accel=%u", user_options->kernel_accel); } - else if (user_options->kernel_loops_chgd == true) + + if (user_options->kernel_loops_chgd == true) { event_log_info (hashcat_ctx, "* --kernel-loops=%u", user_options->kernel_loops); } - else if (user_options->kernel_threads_chgd == true) + + if (user_options->kernel_threads_chgd == true) { event_log_info (hashcat_ctx, "* --kernel-threads=%u", user_options->kernel_threads); } - else + + if (user_options->workload_profile_chgd == true) { - if (user_options->workload_profile_chgd == true) - { - event_log_info (hashcat_ctx, "* --workload-profile=%u", user_options->workload_profile); - } + event_log_info (hashcat_ctx, "* --workload-profile=%u", user_options->workload_profile); } event_log_info (hashcat_ctx, NULL); @@ -2219,20 +2219,20 @@ void user_options_info (hashcat_ctx_t *hashcat_ctx) { event_log_info (hashcat_ctx, "# option: --kernel-accel=%u", user_options->kernel_accel); } - else if (user_options->kernel_loops_chgd == true) + + if (user_options->kernel_loops_chgd == true) { event_log_info (hashcat_ctx, "# option: --kernel-loops=%u", user_options->kernel_loops); } - else if (user_options->kernel_threads_chgd == true) + + if (user_options->kernel_threads_chgd == true) { event_log_info (hashcat_ctx, "# option: --kernel-threads=%u", user_options->kernel_threads); } - else + + if (user_options->workload_profile_chgd == true) { - if (user_options->workload_profile_chgd == true) - { - event_log_info (hashcat_ctx, "# option: --workload-profile=%u", user_options->workload_profile); - } + event_log_info (hashcat_ctx, "# option: --workload-profile=%u", user_options->workload_profile); } } }