]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dma-buf: align debugfs output
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 31 Mar 2017 10:03:20 +0000 (11:03 +0100)
committerSumit Semwal <sumit.semwal@linaro.org>
Mon, 3 Apr 2017 16:27:20 +0000 (21:57 +0530)
Align the heading with the values output from debugfs.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/E1cttOq-0006GX-U7@rmk-PC.armlinux.org.uk
drivers/dma-buf/dma-buf.c

index ebaf1923ad6b6ca84bac52fe24e807a835b6faa2..f72aaacbe023d702c0256c9dcc5345a63f9fa022 100644 (file)
@@ -1072,7 +1072,8 @@ static int dma_buf_debug_show(struct seq_file *s, void *unused)
                return ret;
 
        seq_puts(s, "\nDma-buf Objects:\n");
-       seq_puts(s, "size\tflags\tmode\tcount\texp_name\n");
+       seq_printf(s, "%-8s\t%-8s\t%-8s\t%-8s\texp_name\n",
+                  "size", "flags", "mode", "count");
 
        list_for_each_entry(buf_obj, &db_list.head, list_node) {
                ret = mutex_lock_interruptible(&buf_obj->lock);