Re: [PATCH 1/5] rpmsg: Replace sprintf() with sysfs_emit() in sysfs show
From: Chris Lew
Date: Thu Jan 29 2026 - 19:19:34 EST
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 <zhongqiu.han@xxxxxxxxxxxxxxxx>
> ---
> 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 <christopher.lew@xxxxxxxxxxxxxxxx>