WSL2-Linux-Kernel/samples/kobject
Nguyen Dinh Phi 5a242d8547 samples/kobject: Use sysfs_emit instead of sprintf
sysfs_emit() is preferred over sprintf() when formatting the value to be
returned to user space in show() functions, because it knows about sysfs
buffer specifics and has sanity checks.

Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Link: https://lore.kernel.org/r/20220303183618.1342358-1-phind.uet@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-18 14:28:29 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
kobject-example.c samples/kobject: Use sysfs_emit instead of sprintf 2022-03-18 14:28:29 +01:00
kset-example.c samples/kobject: Use sysfs_emit instead of sprintf 2022-03-18 14:28:29 +01:00