]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sparc: vio: use sysfs_emit in sysfs show functions
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 4 May 2026 18:13:20 +0000 (20:13 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 12 Jun 2026 11:48:40 +0000 (13:48 +0200)
commita7532c505f7f77e14bcc530cb452c73ff1d0272b
tree7f44761c40ae6c4f2ea7afaa964167ec0ea85d74
parent254f49634ee16a731174d2ae34bc50bd5f45e731
sparc: vio: use sysfs_emit in sysfs show functions

Replace sprintf() and scnprintf() with sysfs_emit() in sysfs show
functions. sysfs_emit() is preferred to format sysfs output as it
provides better bounds checking.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/kernel/vio.c