From 289744e7a36490b25ceb0f7aec8d31fd3359c8c7 Mon Sep 17 00:00:00 2001 From: Timo Juhani Lindfors Date: Wed, 22 Feb 2017 19:34:33 +0200 Subject: [PATCH] Fix spelling of MHz --- src/hwmon.c | 4 ++-- src/status.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hwmon.c b/src/hwmon.c index ccfe3d138..09ff11a72 100644 --- a/src/hwmon.c +++ b/src/hwmon.c @@ -384,7 +384,7 @@ static int hm_SYSFS_get_pp_dpm_sclk (hashcat_ctx_t *hashcat_ctx, const int devic int profile = 0; - int rc = sscanf (ptr, "%d: %dMhz", &profile, &clockfreq); + int rc = sscanf (ptr, "%d: %dMHz", &profile, &clockfreq); if (rc == 2) break; } @@ -439,7 +439,7 @@ static int hm_SYSFS_get_pp_dpm_mclk (hashcat_ctx_t *hashcat_ctx, const int devic int profile = 0; - int rc = sscanf (ptr, "%d: %dMhz", &profile, &clockfreq); + int rc = sscanf (ptr, "%d: %dMHz", &profile, &clockfreq); if (rc == 2) break; } diff --git a/src/status.c b/src/status.c index 868d3708a..bcd01b300 100644 --- a/src/status.c +++ b/src/status.c @@ -1624,12 +1624,12 @@ char *status_get_hwmon_dev (const hashcat_ctx_t *hashcat_ctx, const int device_i if (num_corespeed >= 0) { - output_len += snprintf (output_buf + output_len, HCBUFSIZ_TINY - output_len, "Core:%4dMhz ", num_corespeed); + output_len += snprintf (output_buf + output_len, HCBUFSIZ_TINY - output_len, "Core:%4dMHz ", num_corespeed); } if (num_memoryspeed >= 0) { - output_len += snprintf (output_buf + output_len, HCBUFSIZ_TINY - output_len, "Mem:%4dMhz ", num_memoryspeed); + output_len += snprintf (output_buf + output_len, HCBUFSIZ_TINY - output_len, "Mem:%4dMHz ", num_memoryspeed); } if (num_buslanes >= 0)