From 29a461cb518a50dc2a1e0777c5a405527f66ebd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Tue, 28 Mar 2023 00:05:46 +0200 Subject: [PATCH] Respect quiet flag when printing Metal API warning Fixes https://github.com/hashcat/hashcat/issues/3624 --- src/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index d5f071464..5017b9ca9 100644 --- a/src/backend.c +++ b/src/backend.c @@ -6230,7 +6230,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) { if (backend_ctx->backend_devices_filter == -1ULL) { - if (user_options->backend_info == 0) + if ((user_options->quiet == false) && (user_options->backend_info == 0)) { event_log_warning (hashcat_ctx, "The device #%d has been disabled as it most likely also exists as an OpenCL device, but it is not possible to automatically map it.", device_id + 1); event_log_warning (hashcat_ctx, "You can use -d %d to use Metal API instead of OpenCL API. In some rare cases this is more stable.", device_id + 1);