From: Ilya Dryomov Date: Mon, 6 Oct 2014 14:40:27 +0000 (+0400) Subject: libceph: separate multiple ops with commas in debugfs output X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25f897773ba4ddc3dd9f8eabf358cfaefb23b8ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Sage Weil --- diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index d1a62c69a9f4..d2d525529f87 100644 --- 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");