From ac1792f943944c6f69bd2d071fb5e7321e4fcb8d Mon Sep 17 00:00:00 2001 From: coolbry95 Date: Wed, 28 Sep 2016 14:11:18 -0400 Subject: [PATCH] change id numbers to add one to be consistent with the rest of hashcat output --- src/opencl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opencl.c b/src/opencl.c index d652d6433..c9a07235f 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -1672,7 +1672,7 @@ int opencl_ctx_devices_init (opencl_ctx_t *opencl_ctx, const user_options_t *use return -1; } - fprintf (stdout, "\nPlatform ID #%u\n Vendor : %s\n Name : %s\n Version : %s\n\n", platform_id, platform_vendor, platform_name, platform_version); + fprintf (stdout, "\nPlatform ID #%u\n Vendor : %s\n Name : %s\n Version : %s\n\n", platform_id + 1, platform_vendor, platform_name, platform_version); } if ((user_options->benchmark == true || user_options->quiet == false)) @@ -2262,8 +2262,8 @@ int opencl_ctx_devices_init (opencl_ctx_t *opencl_ctx, const user_options_t *use { char *format = " Device ID #%u\n Type : %s\n Vendor ID : %u\n Vendor : %s\n Name : %s\n Processor(s) : %u\n Clock : %u\n Memory : %lu/%lu MB allocatable\n OpenCL Version : %s\n\n"; - fprintf(stdout, format, device_id, - ((device_type & CL_DEVICE_TYPE_CPU) ? "Cpu" : ((device_type & CL_DEVICE_TYPE_GPU) ? "Gpu" : "Accelerator")), + fprintf(stdout, format, device_id + 1, + ((device_type & CL_DEVICE_TYPE_CPU) ? "CPU" : ((device_type & CL_DEVICE_TYPE_GPU) ? "GPU" : "Accelerator")), device_vendor_id, device_vendor, device_name, device_processors, device_maxclock_frequency,