summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-07-09 10:51:31 +0000
committerjsg <jsg@openbsd.org>2020-07-09 10:51:31 +0000
commit7f946e4d96c8e50b95761a0eab9b10302d70529f (patch)
tree343305bd9d0591d29f4ccf85955a7c171ba4d979 /sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c
parentdrm/amd/display: Only revalidate bandwidth on medium and fast updates (diff)
downloadwireguard-openbsd-7f946e4d96c8e50b95761a0eab9b10302d70529f.tar.xz
wireguard-openbsd-7f946e4d96c8e50b95761a0eab9b10302d70529f.zip
drm/amdgpu: use %u rather than %d for sclk/mclk
From Alex Deucher c337fc540bb99e476e33153a9196eba4749a707a in linux 5.7.y/5.7.8 beaf10efca64ac824240838ab1f054dfbefab5e6 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c
index 0e5b36110a2..044ee6991b5 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c
@@ -2592,7 +2592,7 @@ static ssize_t amdgpu_hwmon_show_sclk(struct device *dev,
if (r)
return r;
- return snprintf(buf, PAGE_SIZE, "%d\n", sclk * 10 * 1000);
+ return snprintf(buf, PAGE_SIZE, "%u\n", sclk * 10 * 1000);
}
static ssize_t amdgpu_hwmon_show_sclk_label(struct device *dev,
@@ -2624,7 +2624,7 @@ static ssize_t amdgpu_hwmon_show_mclk(struct device *dev,
if (r)
return r;
- return snprintf(buf, PAGE_SIZE, "%d\n", mclk * 10 * 1000);
+ return snprintf(buf, PAGE_SIZE, "%u\n", mclk * 10 * 1000);
}
static ssize_t amdgpu_hwmon_show_mclk_label(struct device *dev,