lkml.org 
[lkml]   [2015]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] staging: replace simple_strtoul with kstroul
Date
Replacing obsolete simple_stroul with kstroul

Signed-off-by: Ameen Ali <Ameenali023@gmail.com>
---
kernel/printk/printk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c06df7d..058302c 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -518,7 +518,7 @@ struct devkmsg_user {
static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
{
char *buf, *line;
- int i;
+ unsigned long int i;
int level = default_message_loglevel;
int facility = 1; /* LOG_USER */
size_t len = iocb->ki_nbytes;
@@ -549,7 +549,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
if (line[0] == '<') {
char *endp = NULL;

- i = simple_strtoul(line+1, &endp, 10);
+ i = kstrtoul(line+1,10, &endp);
if (endp && endp[0] == '>') {
level = i & 7;
if (i >> 3)
--
2.1.0


\
 
 \ /
  Last update: 2015-02-19 23:21    [W:0.030 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site