diff options
author | 2022-12-05 19:18:56 +0800 | |
---|---|---|
committer | 2022-12-07 20:02:44 -0800 | |
commit | 16dc16d9f058dce7031ee8b850f10622b8b5fb14 (patch) | |
tree | b7e53a2082666e47ed2c5a9dc57161573db7aa0d /net/core/sock.c | |
parent | Merge tag 'ieee802154-for-net-next-2022-12-05' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next (diff) | |
download | wireguard-linux-16dc16d9f058dce7031ee8b850f10622b8b5fb14.tar.xz wireguard-linux-16dc16d9f058dce7031ee8b850f10622b8b5fb14.zip |
net: ethernet: use sysfs_emit() to instead of scnprintf()
Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/202212051918564721658@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions