2005-11-15 12:19:05

by Guillaume Chazarain

[permalink] [raw]
Subject: [PATCH 2/2] 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 <[email protected]>

---
mem.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)

--
Guillaume



Attachments:
kmsg_write.diff (522.00 B)