]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit()
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Tue, 30 Dec 2025 12:45:16 +0000 (18:15 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 6 Jan 2026 08:57:11 +0000 (10:57 +0200)
commit7b0a51955b0eadacd44350b6f13bf21ba675aed9
tree9904c296644d6fcb06672beb68d37c11c6247399
parent050a0aab15da9e1d14cd41073046d12d29f443c6
platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit()

Replace sprintf() with sysfs_emit() in sysfs show functions. The
sysfs_emit() function is the preferred way to format sysfs output as
it ensures proper buffer bounds checking and correct return values.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Link: https://patch.msgid.link/20251230124516.229125-3-kaushlendra.kumar@intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c