From patchwork Wed Oct 8 08:37:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 5052201 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2D35F9F295 for ; Wed, 8 Oct 2014 08:37:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 698B2201F2 for ; Wed, 8 Oct 2014 08:37:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4D2D2018E for ; Wed, 8 Oct 2014 08:37:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754791AbaJHIha (ORCPT ); Wed, 8 Oct 2014 04:37:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:65256 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754449AbaJHIh1 (ORCPT ); Wed, 8 Oct 2014 04:37:27 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so7757846lbi.9 for ; Wed, 08 Oct 2014 01:37:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=BVVom1bvSG5KJd0HUNTFMVup8pkS2vZvDRRCMOv9Mes=; b=MhsGhJFJ9j+qqC+nKmUo+uTw/dlEYGXtxrj4FA7dOR2o+CVZsS7PG1Qfs1xK6ZNixu CwYm5OF3hKBx1Mqg3DvnolKPKRtXYj5RwFSqu1ZkGl9cAHMkGCkNysAbfJAHVynNYqtE VN/mSjdngrAWWLvNno1Xx+0Lj9EcHeQ2TzG/oMczjTgjWFZw05X/uooEJ3VktRHIXtN9 TmUnHNKXUXTvagfBPtMDkwJFJWvwx1aW1DBMzPoiNUSWcUL0ec2IzvIffOQU0PW6xnPt YFhZoj+k/G+PXSuzBw6hzA+U5TsMVlT0gvRsFTe8vvym/oaFc9XoDfSY9JIjBOSwHy5c EENA== X-Gm-Message-State: ALoCoQnkv0pa//e7wZAg8ooeOdO/PcEN8aYLbQgp6Q9h4wROdRoNfeE/51cobZDtyIYpFBHecbYn X-Received: by 10.112.189.103 with SMTP id gh7mr9233548lbc.18.1412757445966; Wed, 08 Oct 2014 01:37:25 -0700 (PDT) Received: from localhost ([109.110.67.250]) by mx.google.com with ESMTPSA id z5sm3677141lae.21.2014.10.08.01.37.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 08 Oct 2014 01:37:24 -0700 (PDT) From: Ilya Dryomov X-Google-Original-From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH] libceph: separate multiple ops with commas in debugfs output Date: Wed, 8 Oct 2014 12:37:16 +0400 Message-Id: <1412757436-6996-1-git-send-email-idryomov@redhat.com> X-Mailer: git-send-email 1.7.10.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- net/ceph/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");