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)
commit40320159f066a8172234b044b4a37abaee175581
treedb1c5aa7fe43351e6a883aeac62c486b667f67ed
parent5efacdf072d19d5321354fa4d8a4df0cc4e1d0cc
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