1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-27 10:28:17 +00:00

make display of active options in benchmark match actual usage

This commit is contained in:
Royce Williams 2017-07-20 06:09:45 -08:00
parent 434af9fe6a
commit 471ba4075d

View File

@ -38,7 +38,14 @@ void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag)
if (user_options->machine_readable == false) if (user_options->machine_readable == false)
{ {
event_log_info (hashcat_ctx, "%s (%s) starting in benchmark mode...", PROGNAME, version_tag); event_log_info (hashcat_ctx, "%s (%s) starting in benchmark mode...", PROGNAME, version_tag);
event_log_info (hashcat_ctx, "Active options: -O %d, -w %u", user_options->optimized_kernel_enable, user_options->workload_profile); if (user_options->optimized_kernel_enable == false)
{
event_log_info (hashcat_ctx, "Active options: -w %u", user_options->workload_profile);
}
else
{
event_log_info (hashcat_ctx, "Active options: -O, -w %u", user_options->workload_profile);
}
event_log_info (hashcat_ctx, NULL); event_log_info (hashcat_ctx, NULL);
if (user_options->workload_profile_chgd == false) if (user_options->workload_profile_chgd == false)
@ -53,8 +60,14 @@ void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag)
else else
{ {
event_log_info (hashcat_ctx, "# %s (%s)", PROGNAME, version_tag); event_log_info (hashcat_ctx, "# %s (%s)", PROGNAME, version_tag);
event_log_info (hashcat_ctx, "# Active options: -O %d, -w %u", user_options->optimized_kernel_enable, user_options->workload_profile); if (user_options->optimized_kernel_enable == false)
{
event_log_info (hashcat_ctx, "# Active options: -w %u", user_options->workload_profile);
}
else
{
event_log_info (hashcat_ctx, "# Active options: -O, -w %u", user_options->workload_profile);
}
} }
} }
else if (user_options->restore == true) else if (user_options->restore == true)