From 16b249c44f3eabe252f1fd159b14d5fc5ccd041e Mon Sep 17 00:00:00 2001 From: PenguinKeeper7 Date: Thu, 29 Feb 2024 23:53:11 +0000 Subject: [PATCH] Make skipped device warning respect --quiet The other usual device information does not show when using --quiet, only the skipped warning does, making it a little out of place. Old: ``` > ./hashcat -m 99999 abcdef -a 3 abcdef --quiet The device #2 specifically listed was skipped because it is an alias of device #1 abcdef:abcdef > ``` New: ``` > ./hashcat -m 99999 abcdef -a 3 abcdef --quiet abcdef:abcdef ``` --- src/backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index f7c916e1d..9fe1e833f 100644 --- a/src/backend.c +++ b/src/backend.c @@ -90,6 +90,7 @@ static bool is_same_device (const hc_device_param_t *src, const hc_device_param_ static int backend_ctx_find_alias_devices (hashcat_ctx_t *hashcat_ctx) { backend_ctx_t *backend_ctx = hashcat_ctx->backend_ctx; + user_options_t *user_options = hashcat_ctx->user_options; // first identify all aliases @@ -157,7 +158,7 @@ static int backend_ctx_find_alias_devices (hashcat_ctx_t *hashcat_ctx) // show a warning for specifically listed devices if they are an alias - if (backend_ctx->backend_devices_filter[alias_device->device_id]) + if (backend_ctx->backend_devices_filter[alias_device->device_id] && user_options->quiet == false) { event_log_warning (hashcat_ctx, "The device #%d specifically listed was skipped because it is an alias of device #%d", alias_device->device_id + 1, backend_device->device_id + 1); event_log_warning (hashcat_ctx, NULL);