summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2023-07-21 12:21:44 +0300
committerJakub Kicinski <kuba@kernel.org>2023-07-25 02:06:20 +0300
commit9f64b6e459d3eee73ca4ea6226653e008d1c1e61 (patch)
treeedbb04abff13958a3d422f956316fe20cf2cbca4 /net/switchdev/switchdev.c
parenta097627dcaddb90f55c1780da348bf9b56f6b4bd (diff)
downloadlinux-9f64b6e459d3eee73ca4ea6226653e008d1c1e61.tar.xz
netconsole: Use sysfs_emit() instead of snprintf()
According to the sysfs.rst documentation, _show() functions should only use sysfs_emit() instead of snprintf(). Since snprintf() shouldn't be used in the sysfs _show() path, replace it by sysfs_emit(). Suggested-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230721092146.4036622-1-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions