]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: replace snprintf in show functions with sysfs_emit
authorQing Wang <wangqing@vivo.com>
Fri, 15 Oct 2021 06:47:20 +0000 (23:47 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Oct 2021 15:43:56 +0000 (11:43 -0400)
commit19a5875666ad897ef7bd8e3989d5fc74f8f01c86
treedb1c5aa7fe43351e6a883aeac62c486b667f67ed
parent428352648dbda41af13f5b89955553ebea577ce8
drm/amdgpu: replace snprintf in show functions with sysfs_emit

show() must not use snprintf() when formatting the value to be
returned to user space.

Fix the following coccicheck warning:
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:427:
WARNING: use scnprintf or sprintf.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c