drm/malidp: Convert sysfs sprintf/snprintf family to sysfs_emit
Subsystems (3)
PATCH 1/1 drm/malidp: Convert sysfs sprintf/snprintf family to sysfs_emit
Fix the following coccicheck warning:
drivers/gpu//drm/arm/malidp_drv.c:658:8-16: WARNING: use scnprintf or sprintf
Signed-off-by Tian Tao <[email protected]>
--- drivers/gpu/drm/arm/malidp_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/malidp_drv.c +1 -1
@@ -655,7 +655,7 @@ static ssize_t core_id_show(struct device *dev, struct device_attribute *attr,struct drm_device *drm =dev_get_drvdata (dev);struct malidp_drm *malidp = drm->dev_private; -return snprintf (buf,PAGE_SIZE ,"%08x\n" , malidp->core_id); +return sysfs_emit (buf,"%08x\n" , malidp->core_id); }static DEVICE_ATTR_RO (core_id);
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel