Commit 25f89777 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Sage Weil

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: default avatarIlya Dryomov <idryomov@redhat.com>
Reviewed-by: default avatarSage Weil <sage@redhat.com>
parent 70b5bfa3
...@@ -169,7 +169,8 @@ static int osdc_show(struct seq_file *s, void *pp) ...@@ -169,7 +169,8 @@ static int osdc_show(struct seq_file *s, void *pp)
for (i = 0; i < req->r_num_ops; i++) { for (i = 0; i < req->r_num_ops; i++) {
opcode = req->r_ops[i].op; 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"); seq_printf(s, "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment