[PATCH] video: omapfb: replace snprintf in show functions with sysfs_emit

Sam Ravnborg sam at ravnborg.org
Fri Oct 15 20:50:24 UTC 2021


Hi Qing,
On Tue, Oct 12, 2021 at 08:28:13PM -0700, Qing Wang wrote:
> coccicheck complains about the use of snprintf() in sysfs show functions.
> 
> Fix the coccicheck warning:
> 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>
Also applied to drm-misc-next.

	Sam


More information about the dri-devel mailing list