libceph: separate multiple ops with commas in debugfs output
PATCH 1/1 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 <[email protected]>
--- net/ceph/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/ceph/debugfs.c +2 -1
@@ -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" );
Signature · 1 line
1.7.10.4
Reviewed-by Sage Weil <[email protected]>
Quoted 31 lines · Ilya Dryomov
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]>--- net/ceph/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)net/ceph/debugfs.c +2
-1@@ -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" );Signature · 6 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html