Skip to content

Commit

Permalink
libceph: separate multiple ops with commas in debugfs output
Browse files Browse the repository at this point in the history
For requests with multiple ops, separate ops with commas instead of \t,
which is a field separator here.

Signed-off-by: Ilya Dryomov <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
idryomov authored and liewegas committed Oct 14, 2014
1 parent 70b5bfa commit 25f8977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ceph/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 25f8977

Please sign in to comment.