drm/amdgpu: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 1 Dec 2022 02:24:21 +0000 (10:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Dec 2022 20:21:34 +0000 (15:21 -0500)
commit2cffcb667921559042fe3025d6d40d2a54f78922
treeeedd07f53ef721545b7d363c42f80d81b341cfdf
parent949933b0f34f42af180a9ae59c263fcf4b76b710
drm/amdgpu: use sysfs_emit() to instead of scnprintf()

Replace the open-code with sysfs_emit() to simplify the code.

Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c