diff options
| author | 2026-01-10 14:58:51 +0530 | |
|---|---|---|
| committer | 2026-01-15 21:03:19 +0100 | |
| commit | 7cb776b74c666c04c9fa10482b0e4d9f049d4fc2 (patch) | |
| tree | 5021dedbdd2a65cf9b2b4fc0e75b8beed21336b7 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | thermal: core: Use strnlen() in thermal_zone_device_register_with_trips() (diff) | |
thermal: Replace sprintf() with sysfs_emit() for sysfs show functions
Replace all sprintf() calls with sysfs_emit() and sysfs_emit_at() in
sysfs show functions.
sysfs_emit() and sysfs_emit_at() are preferred over sprintf() for
formatting sysfs output as they provide better bounds checking and
prevent potential buffer overflows.
Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
Link: https://patch.msgid.link/20260110092851.9078-1-sumeet4linux@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
