printk: /dev/kmsg - properly support writev() to avoid interleaved printk() lines
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 7 Apr 2011 02:29:20 +0000 (04:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:59:58 +0000 (16:59 -0700)
commit7e5b58bcbcb3d7518389c1d82fb6e926f5a9f72c
treea4096c1355beb0bfcdc9ea8bb041c3a7da1149b2
parent47296b1962ead8301488f0dbe8424c7db7eac635
printk: /dev/kmsg - properly support writev() to avoid interleaved printk() lines

printk: /dev/kmsg - properly support writev() to avoid interleaved printk lines

We should avoid calling printk() in a loop, when we pass a single
string to /dev/kmsg with writev().

Cc: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/mem.c