diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-09 10:51:32 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-09 10:51:32 +0000 |
commit | 8a6a3a70f6b91cb4bf028f5bca2591eb9c3dfe2d (patch) | |
tree | 1c18c7e373dfec752bd94d9dcab7d6dec7960229 /sys/dev/pci/drm | |
parent | 73aab70b170cd7899237600c5fa9be5691e2a05a (diff) |
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')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_pm.c | 4 |
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, |