All of lore.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: lustre-devel@lists.lustre.org
Subject: [lustre-devel] [PATCH 1/9] lustre: obdclass: fix formating of connection flags
Date: Fri, 23 Nov 2018 18:15:27 +1100	[thread overview]
Message-ID: <154295732787.2850.4431010272997855706.stgit@noble> (raw)
In-Reply-To: <154295730810.2850.961218355189474016.stgit@noble>

The current code puts the separator *only*
at the start rather than *never* at the start.

Signed-off-by: NeilBrown <neilb@suse.com>
---
 .../lustre/lustre/obdclass/lprocfs_status.c        |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
index feba2ef5a3bc..acfea7a44350 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -709,14 +709,14 @@ static void obd_connect_seq_flags2str(struct seq_file *m, u64 flags,
 	for (i = 0, mask = 1; i < 64; i++, mask <<= 1) {
 		if (flags & mask) {
 			seq_printf(m, "%s%s",
-				   first ? sep : "", obd_connect_names[i]);
+				   first ? "" : sep, obd_connect_names[i]);
 			first = false;
 		}
 	}
 
 	if (flags & ~(mask - 1)) {
 		seq_printf(m, "%sunknown flags %#llx",
-			   first ? sep : "", flags & ~(mask - 1));
+			   first ? "" : sep, flags & ~(mask - 1));
 		first = false;
 	}
 

  parent reply	other threads:[~2018-11-23  7:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-23  7:15 [lustre-devel] [PATCH 0/9] Assorted lustre patches - mostly from OpenSFS NeilBrown
2018-11-23  7:15 ` [lustre-devel] [PATCH 2/9] lustre: remove EIOCBRETRY handling NeilBrown
2018-11-26  1:30   ` James Simmons
2018-11-23  7:15 ` NeilBrown [this message]
2018-11-26  1:30   ` [lustre-devel] [PATCH 1/9] lustre: obdclass: fix formating of connection flags James Simmons
2018-11-23  7:15 ` [lustre-devel] [PATCH 3/9] lustre: ptlrpc: use smp unsafe at_init only for initialization NeilBrown
2018-11-26  1:32   ` James Simmons
2018-11-23  7:15 ` [lustre-devel] [PATCH 4/9] lustre: rename: DNE2 should return -EXDEV upon remote rename NeilBrown
2018-11-26  1:31   ` James Simmons
2018-11-26  3:00     ` NeilBrown
2018-11-23  7:15 ` [lustre-devel] [PATCH 9/9] lustre: statahead: add smp_mb() to serialize ops NeilBrown
2018-11-26  2:10   ` James Simmons
2018-11-23  7:15 ` [lustre-devel] [PATCH 8/9] lustre: statahead: skip agl for the file in restoring NeilBrown
2018-11-26  2:09   ` James Simmons
2018-11-26  2:09   ` James Simmons
2018-11-23  7:15 ` [lustre-devel] [PATCH 5/9] lustre: llite: clear LLIF_FILE_RESTORING when done NeilBrown
2018-11-26  1:34   ` James Simmons
2018-11-23  7:15 ` [lustre-devel] [PATCH 6/9] lustre: obdclass: health_check to report unhealthy upon LBUG NeilBrown
2018-11-26  1:46   ` James Simmons
2018-11-26  1:46   ` James Simmons
2018-11-27  2:32     ` NeilBrown
2018-11-23  7:15 ` [lustre-devel] [PATCH 7/9] lustre: lnet: Stop MLX5 triggering a dump_cqe NeilBrown
2018-11-26  1:49   ` James Simmons
2018-11-27  2:21     ` NeilBrown
2018-11-26  3:47 ` [lustre-devel] [PATCH 0/9] Assorted lustre patches - mostly from OpenSFS James Simmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=154295732787.2850.4431010272997855706.stgit@noble \
    --to=neilb@suse.com \
    --cc=lustre-devel@lists.lustre.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.