Thread (9 messages) 9 messages, 2 authors, 2026-01-30

Re: [PATCH 1/5] rpmsg: Replace sprintf() with sysfs_emit() in sysfs show

From: Chris Lew <hidden>
Date: 2026-01-30 00:19:23
Also in: linux-arm-msm, linux-remoteproc, lkml

On Wed, Dec 17, 2025 at 02:51:08PM +0800, Zhongqiu Han wrote:
Use sysfs_emit() instead of sprintf() in sysfs attribute show functions.
sysfs_emit() is the recommended API for sysfs output as it provides buffer
overflow protection and proper formatting.

No functional changes.

Signed-off-by: Zhongqiu Han <redacted>
---
 drivers/rpmsg/qcom_smd.c   | 2 +-
 drivers/rpmsg/rpmsg_char.c | 6 +++---
 drivers/rpmsg/rpmsg_core.c | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
Reviewed-by: Chris Lew <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help