1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-27 02:18:21 +00:00

Fix some log levels in opencl.c

This commit is contained in:
jsteube 2016-10-12 11:45:24 +02:00
parent 386efb7fb5
commit ebc26ecac5
2 changed files with 22 additions and 19 deletions

View File

@ -3082,7 +3082,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx)
if ((ADL_rc = hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1) if ((ADL_rc = hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1)
{ {
event_log_info (hashcat_ctx, "Failed to set ADL performance state"); event_log_error (hashcat_ctx, "Failed to set ADL performance state");
return -1; return -1;
} }
@ -3277,7 +3277,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
if ((hm_ADL_Overdrive6_PowerControl_Caps (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, &powertune_supported)) == -1) if ((hm_ADL_Overdrive6_PowerControl_Caps (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, &powertune_supported)) == -1)
{ {
event_log_error (hashcat_ctx, "Failed to get ADL PowerControl Capabilities"); //event_log_error (hashcat_ctx, "Failed to get ADL PowerControl Capabilities");
continue; continue;
} }
@ -3288,7 +3288,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
if ((hm_ADL_Overdrive_PowerControl_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, hwmon_ctx->od_power_control_status[device_id])) == -1) if ((hm_ADL_Overdrive_PowerControl_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, hwmon_ctx->od_power_control_status[device_id])) == -1)
{ {
event_log_info (hashcat_ctx, "Failed to restore the ADL PowerControl values"); //event_log_error (hashcat_ctx, "Failed to restore the ADL PowerControl values");
continue; continue;
} }
@ -3306,7 +3306,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
if ((hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1) if ((hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1)
{ {
event_log_info (hashcat_ctx, "Failed to restore ADL performance state"); //event_log_info (hashcat_ctx, "Failed to restore ADL performance state");
continue; continue;
} }

View File

@ -303,20 +303,21 @@ int ocl_init (hashcat_ctx_t *hashcat_ctx)
if (ocl->lib == NULL) if (ocl->lib == NULL)
{ {
event_log_info (hashcat_ctx, ""); event_log_warning (hashcat_ctx,
event_log_info (hashcat_ctx, "ATTENTION! Can't find OpenCL ICD loader library"); "Can't find OpenCL ICD loader library" EOL
event_log_info (hashcat_ctx, ""); "" EOL
#if defined (__linux__) #if defined (__linux__)
event_log_info (hashcat_ctx, "You're probably missing the \"ocl-icd-libopencl1\" package (Debian/Ubuntu)"); "You're probably missing the \"ocl-icd-libopencl1\" package (Debian/Ubuntu)" EOL
event_log_info (hashcat_ctx, " sudo apt-get install ocl-icd-libopencl1"); "Run: sudo apt-get install ocl-icd-libopencl1" EOL
event_log_info (hashcat_ctx, ""); "" EOL
#elif defined (_WIN) #elif defined (_WIN)
event_log_info (hashcat_ctx, "You're probably missing the OpenCL runtime installation"); "You're probably missing the OpenCL runtime installation" EOL
event_log_info (hashcat_ctx, " AMD users require AMD drivers 14.9 or later (recommended 15.12 or later)"); "* AMD users require AMD drivers 14.9 or later (recommended 15.12 or later)" EOL
event_log_info (hashcat_ctx, " Intel users require Intel OpenCL Runtime 14.2 or later (recommended 15.1 or later)"); "* Intel users require Intel OpenCL Runtime 14.2 or later (recommended 15.1 or later)" EOL
event_log_info (hashcat_ctx, " NVidia users require NVidia drivers 346.59 or later (recommended 361.x or later)"); "* NVidia users require NVidia drivers 346.59 or later (recommended 361.x or later)" EOL
event_log_info (hashcat_ctx, ""); "" EOL
#endif #endif
);
return -1; return -1;
} }
@ -1902,7 +1903,9 @@ int opencl_ctx_init (hashcat_ctx_t *hashcat_ctx)
opencl_ctx->ocl = ocl; opencl_ctx->ocl = ocl;
ocl_init (hashcat_ctx); const int rc_ocl_init = ocl_init (hashcat_ctx);
if (rc_ocl_init == -1) return -1;
/** /**
* OpenCL platform selection * OpenCL platform selection