diff options
author | Nicolas Schichan <nicolas.schichan@gmail.com> | 2016-11-24 07:38:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-11-24 12:32:20 -0500 |
commit | 18594e9bc4a27e72d7961a7afe4250a502d1538d (patch) | |
tree | 73f8a97de855db03d11280f1206feb622bb773be | |
parent | 10b9dd56860e93f11cd352e8c75a33357b80b70b (diff) |
init: use pr_cont() when displaying rotator during ramdisk loading.
Otherwise each individual rotator char would be printed in a new line:
(...)
[ 0.642350] -
[ 0.644374] |
[ 0.646367] -
(...)
Signed-off-by: Nicolas Schichan <nicolas.schichan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | init/do_mounts_rd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index 8a09b32e07d6..dd4104c9aa12 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c | |||
@@ -272,7 +272,7 @@ int __init rd_load_image(char *from) | |||
272 | sys_write(out_fd, buf, BLOCK_SIZE); | 272 | sys_write(out_fd, buf, BLOCK_SIZE); |
273 | #if !defined(CONFIG_S390) | 273 | #if !defined(CONFIG_S390) |
274 | if (!(i % 16)) { | 274 | if (!(i % 16)) { |
275 | printk("%c\b", rotator[rotate & 0x3]); | 275 | pr_cont("%c\b", rotator[rotate & 0x3]); |
276 | rotate++; | 276 | rotate++; |
277 | } | 277 | } |
278 | #endif | 278 | #endif |