Commit 164ad86d authored by Iulia Manda's avatar Iulia Manda Committed by Peter P Waskiewicz Jr

staging: android: ion: Replace seq_printf with seq_puts

It is preferred to use seq_puts instead of seq_printf here, as it suffices string printing.
Signed-off-by: default avatarIulia Manda <iulia.manda21@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 7287bb52
...@@ -1387,7 +1387,7 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) ...@@ -1387,7 +1387,7 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused)
size_t total_orphaned_size = 0; size_t total_orphaned_size = 0;
seq_printf(s, "%16.s %16.s %16.s\n", "client", "pid", "size"); seq_printf(s, "%16.s %16.s %16.s\n", "client", "pid", "size");
seq_printf(s, "----------------------------------------------------\n"); seq_puts(s, "----------------------------------------------------\n");
for (n = rb_first(&dev->clients); n; n = rb_next(n)) { for (n = rb_first(&dev->clients); n; n = rb_next(n)) {
struct ion_client *client = rb_entry(n, struct ion_client, struct ion_client *client = rb_entry(n, struct ion_client,
...@@ -1406,8 +1406,8 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) ...@@ -1406,8 +1406,8 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused)
client->pid, size); client->pid, size);
} }
} }
seq_printf(s, "----------------------------------------------------\n"); seq_puts(s, "----------------------------------------------------\n");
seq_printf(s, "orphaned allocations (info is from last known client):\n"); seq_puts(s, "orphaned allocations (info is from last known client):\n");
mutex_lock(&dev->buffer_lock); mutex_lock(&dev->buffer_lock);
for (n = rb_first(&dev->buffers); n; n = rb_next(n)) { for (n = rb_first(&dev->buffers); n; n = rb_next(n)) {
struct ion_buffer *buffer = rb_entry(n, struct ion_buffer, struct ion_buffer *buffer = rb_entry(n, struct ion_buffer,
...@@ -1424,14 +1424,14 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) ...@@ -1424,14 +1424,14 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused)
} }
} }
mutex_unlock(&dev->buffer_lock); mutex_unlock(&dev->buffer_lock);
seq_printf(s, "----------------------------------------------------\n"); seq_puts(s, "----------------------------------------------------\n");
seq_printf(s, "%16.s %16zu\n", "total orphaned", seq_printf(s, "%16.s %16zu\n", "total orphaned",
total_orphaned_size); total_orphaned_size);
seq_printf(s, "%16.s %16zu\n", "total ", total_size); seq_printf(s, "%16.s %16zu\n", "total ", total_size);
if (heap->flags & ION_HEAP_FLAG_DEFER_FREE) if (heap->flags & ION_HEAP_FLAG_DEFER_FREE)
seq_printf(s, "%16.s %16zu\n", "deferred free", seq_printf(s, "%16.s %16zu\n", "deferred free",
heap->free_list_size); heap->free_list_size);
seq_printf(s, "----------------------------------------------------\n"); seq_puts(s, "----------------------------------------------------\n");
if (heap->debug_show) if (heap->debug_show)
heap->debug_show(heap, s, unused); heap->debug_show(heap, s, unused);
......
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