diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:09:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:09:08 -0500 |
commit | 13df7977431e3b906a23bb75f29e0f40a8d73f87 (patch) | |
tree | bc2c78c3b816a65f90c31cccebdc15b38352c045 /drivers/base/dma-buf.c | |
parent | 6d8b3e1ad3d3815d9c87b8553493301e243af76a (diff) | |
parent | 0414855fdc4a40da05221fc6062cccbc0c30f169 (diff) |
Merge 3.14-rc5 into driver-core-next
We want the fixes in here.
Diffstat (limited to 'drivers/base/dma-buf.c')
-rw-r--r-- | drivers/base/dma-buf.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index cfe1d8bc7bb8..ea77701deda4 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c | |||
@@ -620,36 +620,35 @@ static int dma_buf_describe(struct seq_file *s) | |||
620 | if (ret) | 620 | if (ret) |
621 | return ret; | 621 | return ret; |
622 | 622 | ||
623 | seq_printf(s, "\nDma-buf Objects:\n"); | 623 | seq_puts(s, "\nDma-buf Objects:\n"); |
624 | seq_printf(s, "\texp_name\tsize\tflags\tmode\tcount\n"); | 624 | seq_puts(s, "size\tflags\tmode\tcount\texp_name\n"); |
625 | 625 | ||
626 | list_for_each_entry(buf_obj, &db_list.head, list_node) { | 626 | list_for_each_entry(buf_obj, &db_list.head, list_node) { |
627 | ret = mutex_lock_interruptible(&buf_obj->lock); | 627 | ret = mutex_lock_interruptible(&buf_obj->lock); |
628 | 628 | ||
629 | if (ret) { | 629 | if (ret) { |
630 | seq_printf(s, | 630 | seq_puts(s, |
631 | "\tERROR locking buffer object: skipping\n"); | 631 | "\tERROR locking buffer object: skipping\n"); |
632 | continue; | 632 | continue; |
633 | } | 633 | } |
634 | 634 | ||
635 | seq_printf(s, "\t"); | 635 | seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\n", |
636 | 636 | buf_obj->size, | |
637 | seq_printf(s, "\t%s\t%08zu\t%08x\t%08x\t%08ld\n", | ||
638 | buf_obj->exp_name, buf_obj->size, | ||
639 | buf_obj->file->f_flags, buf_obj->file->f_mode, | 637 | buf_obj->file->f_flags, buf_obj->file->f_mode, |
640 | (long)(buf_obj->file->f_count.counter)); | 638 | (long)(buf_obj->file->f_count.counter), |
639 | buf_obj->exp_name); | ||
641 | 640 | ||
642 | seq_printf(s, "\t\tAttached Devices:\n"); | 641 | seq_puts(s, "\tAttached Devices:\n"); |
643 | attach_count = 0; | 642 | attach_count = 0; |
644 | 643 | ||
645 | list_for_each_entry(attach_obj, &buf_obj->attachments, node) { | 644 | list_for_each_entry(attach_obj, &buf_obj->attachments, node) { |
646 | seq_printf(s, "\t\t"); | 645 | seq_puts(s, "\t"); |
647 | 646 | ||
648 | seq_printf(s, "%s\n", attach_obj->dev->init_name); | 647 | seq_printf(s, "%s\n", dev_name(attach_obj->dev)); |
649 | attach_count++; | 648 | attach_count++; |
650 | } | 649 | } |
651 | 650 | ||
652 | seq_printf(s, "\n\t\tTotal %d devices attached\n", | 651 | seq_printf(s, "Total %d devices attached\n\n", |
653 | attach_count); | 652 | attach_count); |
654 | 653 | ||
655 | count++; | 654 | count++; |