diff options
author | Ilya Dryomov <idryomov@redhat.com> | 2014-10-06 10:40:27 -0400 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2014-10-14 15:57:03 -0400 |
commit | 25f897773ba4ddc3dd9f8eabf358cfaefb23b8ae (patch) | |
tree | cf398124792dd81659ac5512379812718efb8528 /net/ceph/debugfs.c | |
parent | 70b5bfa360aea4157b45c2863746ca67896c6ef1 (diff) |
libceph: separate multiple ops with commas in debugfs output
For requests with multiple ops, separate ops with commas instead of \t,
which is a field separator here.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'net/ceph/debugfs.c')
-rw-r--r-- | net/ceph/debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index d1a62c69a9f4..d2d525529f87 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c | |||
@@ -169,7 +169,8 @@ static int osdc_show(struct seq_file *s, void *pp) | |||
169 | 169 | ||
170 | for (i = 0; i < req->r_num_ops; i++) { | 170 | for (i = 0; i < req->r_num_ops; i++) { |
171 | opcode = req->r_ops[i].op; | 171 | opcode = req->r_ops[i].op; |
172 | seq_printf(s, "\t%s", ceph_osd_op_name(opcode)); | 172 | seq_printf(s, "%s%s", (i == 0 ? "\t" : ","), |
173 | ceph_osd_op_name(opcode)); | ||
173 | } | 174 | } |
174 | 175 | ||
175 | seq_printf(s, "\n"); | 176 | seq_printf(s, "\n"); |