[RAMEN9610-12171] android: ion: remove trailing whitespaces
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 25 Oct 2018 07:51:50 +0000 (16:51 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:17 +0000 (20:23 +0300)
Since 'commit 739bf5308f1d ("ion: remove recursive lock")', the list
of devices which have mapping of a buffer in the list of buffers shown
by /sys/kernel/debug/ion/buffers and oom killer notifier is removed
because it causes deadlock. But the title of the removed display item
and the trailing whitespaces at each line are still alive.

Change-Id: Ib6cb01306b97849ac6eea7198f0f6c725faa415b
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion_debug.c

index fb62795714e3f7bde1de48557beba77752ace5c9..dbad18491ad3475a53ca88eea6df9941a9ccc86a 100644 (file)
@@ -287,9 +287,8 @@ static void ion_debug_buffer_for_heap(struct seq_file *s,
        struct ion_buffer *buffer;
        size_t total = 0;
 
-       ion_debug_print(s, "[  id] %15s %8s %5s %8s : %s\n",
-                       "heap", "heaptype", "flags", "size(kb)",
-                       "iommu_mapped...");
+       ion_debug_print(s, "[  id] %15s %8s %5s %8s\n",
+                       "heap", "heaptype", "flags", "size(kb)");
 
        mutex_lock(&dev->buffer_lock);
        for (n = rb_first(&dev->buffers); n; n = rb_next(n)) {
@@ -300,13 +299,11 @@ static void ion_debug_buffer_for_heap(struct seq_file *s,
                                ARRAY_SIZE(heap_type_name)) ?
                                buffer->heap->type : 0;
 
-                       ion_debug_print(s, "[%4d] %15s %8s %#5lx %8zu ",
+                       ion_debug_print(s, "[%4d] %15s %8s %#5lx %8zu\n",
                                        buffer->id, buffer->heap->name,
                                        heap_type_name[heaptype], buffer->flags,
                                        buffer->size / SZ_1K);
 
-                       ion_debug_print(s, "\n");
-
                        total += buffer->size;
                }
        }