[PATCH] drm: panel: replace snprintf in show functions with sysfs_emit
Sam Ravnborg
sam at ravnborg.org
Fri Oct 15 18:16:23 UTC 2021
Hi Qing and Sebastian.
On Fri, Oct 15, 2021 at 01:11:39PM +0200, Sebastian Reichel wrote:
> Hi,
>
> On Thu, Oct 14, 2021 at 11:48:10PM -0700, Qing Wang wrote:
> > show() must not use snprintf() when formatting the value to be
> > returned to user space.
> >
> > Fix the following coccicheck warning:
> > drivers/gpu/drm/panel/panel-dsi-cm.c:251: WARNING: use scnprintf or sprintf.
> > drivers/gpu/drm/panel/panel-dsi-cm.c:271: WARNING: use scnprintf or sprintf.
> >
> > Use sysfs_emit instead of scnprintf or sprintf makes more sense.
> >
> > Signed-off-by: Qing Wang <wangqing at vivo.com>
> > ---
>
> The patch subject could be more specific (this updates just one panel driver).
> Otherwise:
>
> Reviewed-by: Sebastian Reichel <sebastian.reichel at collabora.com>
Updated the patch subject and applied the patch to drm-misc-next.
It will show up in -next in 1-2 weeks.
Sam
More information about the dri-devel
mailing list