Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Iulia Manda <iulia.manda21@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

authored by

Iulia Manda and committed by
Peter P Waskiewicz Jr
164ad86d 7287bb52

+5 -5
+5 -5
drivers/staging/android/ion/ion.c
··· 1387 1387 size_t total_orphaned_size = 0; 1388 1388 1389 1389 seq_printf(s, "%16.s %16.s %16.s\n", "client", "pid", "size"); 1390 - seq_printf(s, "----------------------------------------------------\n"); 1390 + seq_puts(s, "----------------------------------------------------\n"); 1391 1391 1392 1392 for (n = rb_first(&dev->clients); n; n = rb_next(n)) { 1393 1393 struct ion_client *client = rb_entry(n, struct ion_client, ··· 1406 1406 client->pid, size); 1407 1407 } 1408 1408 } 1409 - seq_printf(s, "----------------------------------------------------\n"); 1410 - seq_printf(s, "orphaned allocations (info is from last known client):\n"); 1409 + seq_puts(s, "----------------------------------------------------\n"); 1410 + seq_puts(s, "orphaned allocations (info is from last known client):\n"); 1411 1411 mutex_lock(&dev->buffer_lock); 1412 1412 for (n = rb_first(&dev->buffers); n; n = rb_next(n)) { 1413 1413 struct ion_buffer *buffer = rb_entry(n, struct ion_buffer, ··· 1424 1424 } 1425 1425 } 1426 1426 mutex_unlock(&dev->buffer_lock); 1427 - seq_printf(s, "----------------------------------------------------\n"); 1427 + seq_puts(s, "----------------------------------------------------\n"); 1428 1428 seq_printf(s, "%16.s %16zu\n", "total orphaned", 1429 1429 total_orphaned_size); 1430 1430 seq_printf(s, "%16.s %16zu\n", "total ", total_size); 1431 1431 if (heap->flags & ION_HEAP_FLAG_DEFER_FREE) 1432 1432 seq_printf(s, "%16.s %16zu\n", "deferred free", 1433 1433 heap->free_list_size); 1434 - seq_printf(s, "----------------------------------------------------\n"); 1434 + seq_puts(s, "----------------------------------------------------\n"); 1435 1435 1436 1436 if (heap->debug_show) 1437 1437 heap->debug_show(heap, s, unused);