1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Merge pull request #3661 from davidbolvansky/patch-1

Respect quiet flag when printing Metal API warning
This commit is contained in:
Jens Steube 2023-03-28 18:58:43 +02:00 committed by GitHub
commit b72d6441a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (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, "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); 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);