diff options
| author | Abdelrahman Fekry <[email protected]> | 2025-06-21 05:52:00 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-07-02 17:57:28 +0000 |
| commit | 66c1f381d8b3282a191e8d93faac938647dfbc70 (patch) | |
| tree | 010a714bc7bf3bd3d1bb866ddb186b57eb319a4d /fs/btrfs/tree-mod-log.c | |
| parent | Linux 6.16-rc4 (diff) | |
| download | kernel-66c1f381d8b3282a191e8d93faac938647dfbc70.tar.gz kernel-66c1f381d8b3282a191e8d93faac938647dfbc70.zip | |
ACPI: fan: Replace sprintf()/scnprintf() with sysfs_emit() in show() functions
Update two sysfs show() functions in the ACPI fan driver to use sysfs_emit()
and sysfs_emit_at() instead of sprintf() and scnprintf().
- show_fan_speed(): replaced sprintf() with sysfs_emit().
- show_state(): replaced scnprintf() with sysfs_emit() for the first
write, and retained sysfs_emit_at() for incremental writes.
This change is in accordance with Documentation/filesystems/sysfs.rst,
which recommends using sysfs_emit/sysfs_emit_at in all sysfs show()
callbacks for buffer safety, clarity, and consistency.
Signed-off-by: Abdelrahman Fekry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions
