From: Guillaume Chazarain Date: Sun, 8 Jan 2006 09:02:43 +0000 (-0800) Subject: [PATCH] kmsg_write: don't return printk return value X-Git-Tag: v2.6.16-rc1~775 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd140a5c1f456f50897af4a2e9a23d228a5fe719;p=pandora-kernel.git [PATCH] kmsg_write: don't return printk return value kmsg_write returns with printk, so some programs may be confused by a successful write() with a return value different than the buffer length. # /bin/echo something > /dev/kmsg /bin/echo: write error: Inappropriate ioctl for device The drawbacks is that the printk return value can no more be quickly checked from userspace. Signed-off-by: Guillaume Chazarain Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed