From: Cho KyongHo Date: Thu, 25 Oct 2018 07:51:50 +0000 (+0900) Subject: [RAMEN9610-12171] android: ion: remove trailing whitespaces X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65c0327717e4dc7538e786cbf919653f95910e6f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-12171] android: ion: remove trailing whitespaces 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 --- diff --git a/drivers/staging/android/ion/ion_debug.c b/drivers/staging/android/ion/ion_debug.c index fb62795714e3..dbad18491ad3 100644 --- a/drivers/staging/android/ion/ion_debug.c +++ b/drivers/staging/android/ion/ion_debug.c @@ -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; } }