]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
platform/x86: dell-wmi-sysman: Use sysfs_emit{_at} in show functions
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 5 Mar 2026 14:09:13 +0000 (15:09 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 9 Mar 2026 14:15:14 +0000 (16:15 +0200)
commit9b0ee949f7940786b0292329c2ae1f5dd63e69ba
tree7ca4a5206373df80da353bf159f0736889d6a1d7
parentd913a5a12b4036e4219b02777d0a9c70e37a6620
platform/x86: dell-wmi-sysman: Use sysfs_emit{_at} in show functions

Replace sprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show
functions. sysfs_emit() and sysfs_emit_at() are preferred for formatting
sysfs output because they provide safer bounds checking.

In reset_bios_show(), use sysfs_emit_at() to avoid manual buffer size
accounting.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260305140912.258090-2-thorsten.blum@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c