Skip to content

Commit 60f76ea

Browse files
committed
Merge tag 'dma-buf-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sumits/dma-buf
Pull dma-buf fix from Sumit Semwal: "Just some debugfs output updates. There's another patch related to dma-buf, but it'll get upstreamed via Greg KH's pull request" * tag 'dma-buf-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sumits/dma-buf: dma-buf: update debugfs output
2 parents 2b25039 + c0b00a5 commit 60f76ea

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

drivers/base/dma-buf.c

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -616,36 +616,35 @@ static int dma_buf_describe(struct seq_file *s)
616616
if (ret)
617617
return ret;
618618

619-
seq_printf(s, "\nDma-buf Objects:\n");
620-
seq_printf(s, "\texp_name\tsize\tflags\tmode\tcount\n");
619+
seq_puts(s, "\nDma-buf Objects:\n");
620+
seq_puts(s, "size\tflags\tmode\tcount\texp_name\n");
621621

622622
list_for_each_entry(buf_obj, &db_list.head, list_node) {
623623
ret = mutex_lock_interruptible(&buf_obj->lock);
624624

625625
if (ret) {
626-
seq_printf(s,
627-
"\tERROR locking buffer object: skipping\n");
626+
seq_puts(s,
627+
"\tERROR locking buffer object: skipping\n");
628628
continue;
629629
}
630630

631-
seq_printf(s, "\t");
632-
633-
seq_printf(s, "\t%s\t%08zu\t%08x\t%08x\t%08ld\n",
634-
buf_obj->exp_name, buf_obj->size,
631+
seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\n",
632+
buf_obj->size,
635633
buf_obj->file->f_flags, buf_obj->file->f_mode,
636-
(long)(buf_obj->file->f_count.counter));
634+
(long)(buf_obj->file->f_count.counter),
635+
buf_obj->exp_name);
637636

638-
seq_printf(s, "\t\tAttached Devices:\n");
637+
seq_puts(s, "\tAttached Devices:\n");
639638
attach_count = 0;
640639

641640
list_for_each_entry(attach_obj, &buf_obj->attachments, node) {
642-
seq_printf(s, "\t\t");
641+
seq_puts(s, "\t");
643642

644-
seq_printf(s, "%s\n", attach_obj->dev->init_name);
643+
seq_printf(s, "%s\n", dev_name(attach_obj->dev));
645644
attach_count++;
646645
}
647646

648-
seq_printf(s, "\n\t\tTotal %d devices attached\n",
647+
seq_printf(s, "Total %d devices attached\n\n",
649648
attach_count);
650649

651650
count++;

include/linux/dma-buf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct dma_buf *dma_buf_export_named(void *priv, const struct dma_buf_ops *ops,
171171
size_t size, int flags, const char *);
172172

173173
#define dma_buf_export(priv, ops, size, flags) \
174-
dma_buf_export_named(priv, ops, size, flags, __FILE__)
174+
dma_buf_export_named(priv, ops, size, flags, KBUILD_MODNAME)
175175

176176
int dma_buf_fd(struct dma_buf *dmabuf, int flags);
177177
struct dma_buf *dma_buf_get(int fd);

0 commit comments

Comments
 (0)