initramfs: prevent initramfs printk message being split by messages from other code.
authorSimon Kitching <skitching@apache.org>
Thu, 2 Apr 2009 23:57:00 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:51 +0000 (19:04 -0700)
commitc1c490e017b66b31f6559db9cbb51a3ce00cf639
tree94dfc491de797796143bc457476d0e2163abd6d3
parent6f2c55b843836d26528c56a0968689accaedbc67
initramfs: prevent initramfs printk message being split by messages from other code.

initramfs uses printk without a linefeed, then does some work, then uses
printk to finish the message off.  However if some other code does a
printk in between, then the messages get mixed together.  Better for each
message to be an independent line...

Example of problem that this fixes:

    checking if image is initramfs...<7>Switched to high resolution mode on CPU 1
    Switched to high resolution mode on CPU 0
    it is

Signed-off-by: Simon Kitching <skitching@apache.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/initramfs.c