Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753609AbbBSWOM (ORCPT ); Thu, 19 Feb 2015 17:14:12 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:52517 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753439AbbBSWOK (ORCPT ); Thu, 19 Feb 2015 17:14:10 -0500 From: Ameen Ali To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Ameen Ali , Ameen Ali Subject: [PATCH 2/2] staging: replace simple_strtoul with kstroul Date: Fri, 20 Feb 2015 00:13:57 +0200 Message-Id: <1424384037-4081-1-git-send-email-ameenali023@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 37 Replacing obsolete simple_stroul with kstroul Signed-off-by: Ameen Ali --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/