Skip to content

Commit 25f8977

Browse files
idryomovliewegas
authored andcommitted
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>
1 parent 70b5bfa commit 25f8977

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/ceph/debugfs.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ static int osdc_show(struct seq_file *s, void *pp)
169169

170170
for (i = 0; i < req->r_num_ops; i++) {
171171
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));
173174
}
174175

175176
seq_printf(s, "\n");

0 commit comments

Comments
 (0)