Skip to content

Commit

Permalink
init: use pr_cont() when displaying rotator during ramdisk loading.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Schichan authored and torvalds committed Nov 24, 2016
1 parent 10b9dd5 commit 18594e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/do_mounts_rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int __init rd_load_image(char *from)
sys_write(out_fd, buf, BLOCK_SIZE);
#if !defined(CONFIG_S390)
if (!(i % 16)) {
printk("%c\b", rotator[rotate & 0x3]);
pr_cont("%c\b", rotator[rotate & 0x3]);
rotate++;
}
#endif
Expand Down

0 comments on commit 18594e9

Please sign in to comment.