arm64: proton-pack: use sysfs_emit in sysfs show functions

Replace sprintf() with sysfs_emit() in sysfs show functions, which is
preferred for formatting sysfs output because it provides safer bounds
checking.

While the current code only emits fixed strings that fit easily within
PAGE_SIZE, use sysfs_emit() to follow secure coding best practices.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
Thorsten Blum 2026-05-13 13:57:55 +02:00 • committed by Will Deacon
commit 243c1d75a0