From: Philipp Reisner <philipp.reisner@linbit.com>
To: Jens Axboe <axboe@kernel.dk>, linux-kernel@vger.kernel.org
Cc: drbd-dev@lists.linbit.com
Subject: [PATCH 9/9] drbd: Add missing newline in resync progress display in /proc/drbd
Date: Thu, 11 Sep 2014 14:29:13 +0200 [thread overview]
Message-ID: <1410438553-30440-10-git-send-email-philipp.reisner@linbit.com> (raw)
In-Reply-To: <1410438553-30440-1-git-send-email-philipp.reisner@linbit.com>
Was broken in 2010 with commit 4b0715f096
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
---
drivers/block/drbd/drbd_proc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/block/drbd/drbd_proc.c b/drivers/block/drbd/drbd_proc.c
index 06e6147..3b10fa6 100644
--- a/drivers/block/drbd/drbd_proc.c
+++ b/drivers/block/drbd/drbd_proc.c
@@ -142,10 +142,12 @@ static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *se
(unsigned long) Bit2KB(rs_left >> 10),
(unsigned long) Bit2KB(rs_total >> 10));
else
- seq_printf(seq, "(%lu/%lu)K\n\t",
+ seq_printf(seq, "(%lu/%lu)K",
(unsigned long) Bit2KB(rs_left),
(unsigned long) Bit2KB(rs_total));
+ seq_printf(seq, "\n\t");
+
/* see drivers/md/md.c
* We do not want to overflow, so the order of operands and
* the * 100 / 100 trick are important. We do a +1 to be
--
1.9.1
next prev parent reply other threads:[~2014-09-11 12:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 12:29 [PATCH 0/9] DRBD updates for 3.18 Philipp Reisner
2014-09-11 12:29 ` [PATCH 1/9] drbd: Use better variable names Philipp Reisner
2014-09-11 12:29 ` [PATCH 2/9] drbd: Use consistent names for all the bi_end_io callbacks Philipp Reisner
2014-09-11 12:29 ` [PATCH 3/9] drbd: Remove superfluous newline from "resync_extents" debugfs entry Philipp Reisner
2014-09-11 12:29 ` [PATCH 4/9] drbd: Avoid inconsistent locking warning Philipp Reisner
2014-09-11 12:29 ` [PATCH 5/9] drbd: Get rid of the __no_warn and __cond_lock macros Philipp Reisner
2014-09-11 12:29 ` [PATCH 6/9] drbd: Get rid of the WORK_PENDING macro Philipp Reisner
2014-09-11 12:29 ` [PATCH 7/9] drbd: Improve asender performance Philipp Reisner
2014-09-11 12:29 ` [PATCH 8/9] drbd: reduce lock contention in drbd_worker Philipp Reisner
2014-09-11 12:29 ` Philipp Reisner [this message]
2014-09-11 15:12 ` [PATCH 0/9] DRBD updates for 3.18 Jens Axboe
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=1410438553-30440-10-git-send-email-philipp.reisner@linbit.com \
--to=philipp.reisner@linbit.com \
--cc=axboe@kernel.dk \
--cc=drbd-dev@lists.linbit.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®