diff options
| author | Sumeet Pawnikar <sumeet4linux@gmail.com> | 2026-01-10 14:58:51 +0530 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-15 21:03:19 +0100 |
| commit | 7cb776b74c666c04c9fa10482b0e4d9f049d4fc2 (patch) | |
| tree | 5021dedbdd2a65cf9b2b4fc0e75b8beed21336b7 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 1d97b8e3bfbb4fec99054cb5c413652a0ccfdeec (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 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
