Skip to content

Commit 28c486f

Browse files
authored
Merge pull request hashcat#4340 from Chick3nman/rp-warning-quiet
Silence some warning lines with --quiet
2 parents 121bf72 + 615e524 commit 28c486f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/rp.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,15 +819,19 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32
819819

820820
if (result == -1)
821821
{
822-
event_log_warning (hashcat_ctx, "Skipping invalid or unsupported rule in file %s on line %u: %s", rp_file, rule_line, rule_buf);
823-
822+
if (user_options->quiet == false)
823+
{
824+
event_log_warning (hashcat_ctx, "Skipping invalid or unsupported rule in file %s on line %u: %s", rp_file, rule_line, rule_buf);
825+
}
824826
continue;
825827
}
826828

827829
if (cpu_rule_to_kernel_rule (rule_buf, rule_len, &kernel_rules_buf[kernel_rules_cnt]) == -1)
828830
{
829-
event_log_warning (hashcat_ctx, "Cannot convert rule for use on OpenCL device in file %s on line %u: %s", rp_file, rule_line, rule_buf);
830-
831+
if (user_options->quiet == false)
832+
{
833+
event_log_warning (hashcat_ctx, "Cannot convert rule for use on OpenCL device in file %s on line %u: %s", rp_file, rule_line, rule_buf);
834+
}
831835
memset (&kernel_rules_buf[kernel_rules_cnt], 0, sizeof (kernel_rule_t)); // needs to be cleared otherwise we could have some remaining data
832836

833837
continue;

0 commit comments

Comments
 (0)