diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2014-09-11 14:29:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-11 08:41:29 -0600 |
commit | 590001c229e86a0adab4a61a6d668940d7ce5299 (patch) | |
tree | 049e1cb655b50fbaae10365d6553e91860a30218 /drivers/block | |
parent | 729e8b87bac63dee09302ddffc05a7ba0e50c9ad (diff) | |
download | linux-stable-590001c229e86a0adab4a61a6d668940d7ce5299.tar.gz linux-stable-590001c229e86a0adab4a61a6d668940d7ce5299.tar.bz2 linux-stable-590001c229e86a0adab4a61a6d668940d7ce5299.zip |
drbd: Add missing newline in resync progress display in /proc/drbd
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>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_proc.c b/drivers/block/drbd/drbd_proc.c index 06e6147c7601..3b10fa6cb039 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 |