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 <[email protected]>
---
mem.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
--
Guillaume