From: Jason Baron <jbaron@akamai.com>
To: Andrey Ryabinin <a.ryabinin@samsung.com>, gregkh@linuxfoundation.org
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] dynamic_debug: replace obselete simple_strtoul() with kstrtouint()
Date: Fri, 24 Jan 2014 15:03:38 -0500 [thread overview]
Message-ID: <52E2C71A.7040002@akamai.com> (raw)
In-Reply-To: <1390483232-7160-3-git-send-email-a.ryabinin@samsung.com>
Hi,
I think we want some sort of commit message for this patch. But they
all look good to me and they tested fine.
Acked-by: Jason Baron <jbaron@akamai.com>
Greg, Can you pick up this series?
Thanks,
-Jason
On 01/23/2014 08:20 AM, Andrey Ryabinin wrote:
> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
> ---
> lib/dynamic_debug.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
> index e488d9a..7288e38 100644
> --- a/lib/dynamic_debug.c
> +++ b/lib/dynamic_debug.c
> @@ -268,14 +268,12 @@ static int ddebug_tokenize(char *buf, char *words[], int maxwords)
> */
> static inline int parse_lineno(const char *str, unsigned int *val)
> {
> - char *end = NULL;
> BUG_ON(str == NULL);
> if (*str == '\0') {
> *val = 0;
> return 0;
> }
> - *val = simple_strtoul(str, &end, 10);
> - if (end == NULL || end == str || *end != '\0') {
> + if (kstrtouint(str, 10, val) < 0) {
> pr_err("bad line-number: %s\n", str);
> return -EINVAL;
> }
next prev parent reply other threads:[~2014-01-24 20:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 13:20 [PATCH 1/3] dynamic_debug: remove wrong error message Andrey Ryabinin
2014-01-23 13:20 ` [PATCH 2/3] dynamic_debug: fix ddebug_parse_query() Andrey Ryabinin
2014-01-23 13:20 ` [PATCH 3/3] dynamic_debug: replace obselete simple_strtoul() with kstrtouint() Andrey Ryabinin
2014-01-24 20:03 ` Jason Baron [this message]
2014-01-24 21:35 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E2C71A.7040002@akamai.com \
--to=jbaron@akamai.com \
--cc=a.ryabinin@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox