diff options
author | Breno Leitao <leitao@debian.org> | 2023-07-21 12:21:44 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-25 02:06:20 +0300 |
commit | 9f64b6e459d3eee73ca4ea6226653e008d1c1e61 (patch) | |
tree | edbb04abff13958a3d422f956316fe20cf2cbca4 /net/switchdev/switchdev.c | |
parent | a097627dcaddb90f55c1780da348bf9b56f6b4bd (diff) | |
download | linux-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