projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70b5bfa
)
libceph: separate multiple ops with commas in debugfs output
author
Ilya Dryomov
<idryomov@redhat.com>
Mon, 6 Oct 2014 14:40:27 +0000
(18:40 +0400)
committer
Sage Weil
<sage@redhat.com>
Tue, 14 Oct 2014 19:57:03 +0000
(12:57 -0700)
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>
net/ceph/debugfs.c
patch
|
blob
|
history
diff --git
a/net/ceph/debugfs.c
b/net/ceph/debugfs.c
index d1a62c69a9f4fd1cff25ca458a66d8e2c6093099..d2d525529f8770452412e21b51cd55b3559e6192 100644
(file)
--- a/
net/ceph/debugfs.c
+++ b/
net/ceph/debugfs.c
@@
-169,7
+169,8
@@
static int osdc_show(struct seq_file *s, void *pp)
for (i = 0; i < req->r_num_ops; i++) {
opcode = req->r_ops[i].op;
- seq_printf(s, "\t%s", ceph_osd_op_name(opcode));
+ seq_printf(s, "%s%s", (i == 0 ? "\t" : ","),
+ ceph_osd_op_name(opcode));
}
seq_printf(s, "\n");