platform/x86: panasonic-laptop: Replace snprintf in show functions with sysfs_emit
[ Upstream commit 2d5b0755 ] show() must not use snprintf() when formatting the value to be returned to user space. Fix the coccicheck warnings: WARNING: use scnprintf or sprintf. Use sysfs_emit instead of scnprintf or sprintf makes more sense. Signed-off-by:Qing Wang <wangqing@vivo.com> Link: https://lore.kernel.org/r/1634280641-4862-1-git-send-email-wangqing@vivo.com Reviewed-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Stable-dep-of: 5c7bebc1 ("platform/x86: panasonic-laptop: Return errno correctly in show callback") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading