Re: [PATCH] sscanf: don't ignore field widths for numericconversions

From: Andrew Morton
Date: Fri Nov 02 2012 - 17:32:56 EST


On Fri, 02 Nov 2012 14:44:08 +0000
"Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> This is another step towards better standard conformance. Rather than
> adding a local buffer to store the specified portion of the string
> (with the need to enforce an arbitrary maximum supported width to
> limit the buffer size), do a maximum width conversion and then drop as
> much of it as is necessary to meet the caller's request.
>
> Also fail on negative field widths.
>
> ...
>
> + simple_strtol(str, &next, base) :

simple_strtol() kerndoc says "This function is obsolete. Please use
kstrtol instead." Can we?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/