lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/7] kmsg: no need to limit the return value of printk
Date
Prefixes added by printk() are no longer included in the count of
characters which it returns.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
---
drivers/char/mem.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index a074fce..8599f65 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -852,9 +852,6 @@ static ssize_t kmsg_write(struct file * file, const char __user * buf,
if (!copy_from_user(tmp, buf, count)) {
tmp[count] = 0;
ret = printk("%s", tmp);
- if (ret > count)
- /* printk can add a prefix */
- ret = count;
}
kfree(tmp);
return ret;
--
1.6.3.2


\
 
 \ /
  Last update: 2009-10-07 10:59    [from the cache]
©2003-2011 Jasper Spaans