Skip to content
Commit 40320159 authored by Qing Wang's avatar Qing Wang Committed by Alex Deucher
Browse files

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: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5efacdf0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment