[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20d37e05-c496-499a-97a2-bcde9b7fe958@rowland.harvard.edu>
Date: Thu, 19 Jun 2025 10:25:50 -0400
From: Alan Stern <stern@...land.harvard.edu>
To: Hendrik Hamerlinck <hendrik.hamerlinck@...mernet.be>
Cc: gregkh@...uxfoundation.org, skhan@...uxfoundation.org,
linux-kernel-mentees@...ts.linux.dev, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] usb: ehci: replace scnprintf() with sysfs_emit()
On Thu, Jun 19, 2025 at 02:07:11PM +0200, Hendrik Hamerlinck wrote:
> Per Documentation/filesystems/sysfs.rst, show() methods should only
> use sysfs_emit() or sysfs_emit_at() when formatting values to be
> returned to userspace.
>
> Convert the uses of scnprintf() in sysfs show() methods to
> sysfs_emit() and sysfs_emit_at() for better safety and consistency.
>
> Signed-off-by: Hendrik Hamerlinck <hendrik.hamerlinck@...mernet.be>
> ---
Reviewed-by: Alan Stern <stern@...land.harvard.edu>
Powered by blists - more mailing lists