1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

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
This commit is contained in:
PenguinKeeper7 2024-07-31 15:40:09 +01:00
parent 6716447dfc
commit 3e48db8206

View File

@ -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);
}
}
}