From: Qiang Liu <[email protected]> Replace seq_printf() with seq_puts() when printing constant strings without format specifiers. This is more efficient as seq_puts() doesn't need to parse the format string.
Signed-off-by: Qiang Liu <[email protected]> --- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index ae1c6126c2c5..f9658bdf703e 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -66,7 +66,7 @@ static int drm_name_info(struct seq_file *m, void *data) seq_printf(m, " master=%s", master->unique); if (dev->unique) seq_printf(m, " unique=%s", dev->unique); - seq_printf(m, "\n"); + seq_puts(m, "\n"); mutex_unlock(&dev->master_mutex); return 0; @@ -139,7 +139,7 @@ static int drm_gem_name_info(struct seq_file *m, void *data) struct drm_debugfs_entry *entry = m->private; struct drm_device *dev = entry->dev; - seq_printf(m, " name size handles refcount\n"); + seq_puts(m, " name size handles refcount\n"); mutex_lock(&dev->object_name_lock); idr_for_each(&dev->object_name_idr, drm_gem_one_name_info, m); -- 2.43.0
