Commit a0eacf29 authored by Hema Prathaban's avatar Hema Prathaban Committed by Greg Kroah-Hartman

staging: android: Replace seq_printf with seq_puts

Fixes the following checkpatch warning:
WARNING: Prefer seq_puts to seq_printf
Signed-off-by: default avatarHema Prathaban <hemaklnce@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d03f6bba
...@@ -876,11 +876,11 @@ static void sync_print_pt(struct seq_file *s, struct sync_pt *pt, bool fence) ...@@ -876,11 +876,11 @@ static void sync_print_pt(struct seq_file *s, struct sync_pt *pt, bool fence)
seq_printf(s, " / %s", value); seq_printf(s, " / %s", value);
} }
} else if (pt->parent->ops->print_pt) { } else if (pt->parent->ops->print_pt) {
seq_printf(s, ": "); seq_puts(s, ": ");
pt->parent->ops->print_pt(s, pt); pt->parent->ops->print_pt(s, pt);
} }
seq_printf(s, "\n"); seq_puts(s, "\n");
} }
static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj) static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
...@@ -895,11 +895,11 @@ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj) ...@@ -895,11 +895,11 @@ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
obj->ops->timeline_value_str(obj, value, sizeof(value)); obj->ops->timeline_value_str(obj, value, sizeof(value));
seq_printf(s, ": %s", value); seq_printf(s, ": %s", value);
} else if (obj->ops->print_obj) { } else if (obj->ops->print_obj) {
seq_printf(s, ": "); seq_puts(s, ": ");
obj->ops->print_obj(s, obj); obj->ops->print_obj(s, obj);
} }
seq_printf(s, "\n"); seq_puts(s, "\n");
spin_lock_irqsave(&obj->child_list_lock, flags); spin_lock_irqsave(&obj->child_list_lock, flags);
list_for_each(pos, &obj->child_list_head) { list_for_each(pos, &obj->child_list_head) {
...@@ -940,7 +940,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) ...@@ -940,7 +940,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
unsigned long flags; unsigned long flags;
struct list_head *pos; struct list_head *pos;
seq_printf(s, "objs:\n--------------\n"); seq_puts(s, "objs:\n--------------\n");
spin_lock_irqsave(&sync_timeline_list_lock, flags); spin_lock_irqsave(&sync_timeline_list_lock, flags);
list_for_each(pos, &sync_timeline_list_head) { list_for_each(pos, &sync_timeline_list_head) {
...@@ -949,11 +949,11 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) ...@@ -949,11 +949,11 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
sync_timeline_list); sync_timeline_list);
sync_print_obj(s, obj); sync_print_obj(s, obj);
seq_printf(s, "\n"); seq_puts(s, "\n");
} }
spin_unlock_irqrestore(&sync_timeline_list_lock, flags); spin_unlock_irqrestore(&sync_timeline_list_lock, flags);
seq_printf(s, "fences:\n--------------\n"); seq_puts(s, "fences:\n--------------\n");
spin_lock_irqsave(&sync_fence_list_lock, flags); spin_lock_irqsave(&sync_fence_list_lock, flags);
list_for_each(pos, &sync_fence_list_head) { list_for_each(pos, &sync_fence_list_head) {
...@@ -961,7 +961,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) ...@@ -961,7 +961,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
container_of(pos, struct sync_fence, sync_fence_list); container_of(pos, struct sync_fence, sync_fence_list);
sync_print_fence(s, fence); sync_print_fence(s, fence);
seq_printf(s, "\n"); seq_puts(s, "\n");
} }
spin_unlock_irqrestore(&sync_fence_list_lock, flags); spin_unlock_irqrestore(&sync_fence_list_lock, flags);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment