diff --git a/src/hashes.c b/src/hashes.c index fc6fee5f2..4ec2aa440 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -1187,16 +1187,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) compress_terminal_line_length (tmp_line_buf, 38, 32); - if (user_options->machine_readable == true) { - event_log_warning(hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, - line_num, tmp_line_buf, - strparser(parser_status)); - - } else { - event_log_warning(hashcat_ctx, - "Hashfile '%s' on line %u (%s): %s", - hashes->hashfile, line_num, tmp_line_buf, - strparser(parser_status)); + if (user_options->machine_readable == true) + { + event_log_warning (hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); + } + else + { + event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); } hcfree (tmp_line_buf); @@ -1221,16 +1218,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) compress_terminal_line_length (tmp_line_buf, 38, 32); - if (user_options->machine_readable == true) { - event_log_warning(hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, - line_num, tmp_line_buf, - strparser(parser_status)); - - } else { - event_log_warning(hashcat_ctx, - "Hashfile '%s' on line %u (%s): %s", - hashes->hashfile, line_num, tmp_line_buf, - strparser(parser_status)); + if (user_options->machine_readable == true) + { + event_log_warning (hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); + } + else + { + event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); } hcfree (tmp_line_buf); @@ -1257,16 +1251,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) compress_terminal_line_length (tmp_line_buf, 38, 32); - if (user_options->machine_readable == true) { - event_log_warning(hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, - line_num, tmp_line_buf, - strparser(parser_status)); - - } else { - event_log_warning(hashcat_ctx, - "Hashfile '%s' on line %u (%s): %s", - hashes->hashfile, line_num, tmp_line_buf, - strparser(parser_status)); + if (user_options->machine_readable == true) + { + event_log_warning (hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); + } + else + { + event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); } hcfree (tmp_line_buf); @@ -1294,16 +1285,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) compress_terminal_line_length (tmp_line_buf, 38, 32); - if (user_options->machine_readable == true) { - event_log_warning(hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, - line_num, tmp_line_buf, - strparser(parser_status)); - - } else { - event_log_warning(hashcat_ctx, - "Hashfile '%s' on line %u (%s): %s", - hashes->hashfile, line_num, tmp_line_buf, - strparser(parser_status)); + if (user_options->machine_readable == true) + { + event_log_warning (hashcat_ctx, "%s:%u:%s:%s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); + } + else + { + event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status)); } hcfree (tmp_line_buf);