Re: is there small mistake in lib/vsprintf.c of kernel 2.4.20 ?

Kevin Corry (kevcorry@us.ibm.com)
Fri, 2 May 2003 13:23:50 -0500


On Friday 02 May 2003 12:15, Richard B. Johnson wrote:
> Kevin Corry <kevcorry@us.ibm.com>, submitted a patch which breaks
> already working code in an aparent attempt to fix the leading
> "0x" problem.

It is not a patch to fix the leading "0x" problem. It is a patch to fix
scanning of hex numbers which do *not* start with "0x". Hex numbers starting
with "0x" will already scan correctly. Like I said before, try scanning "fe"
as a hex number, and watch scanf return an error. Like I also said before,
this same patch has been in 2.5 for quite a while, so I fail to see why it
shouldn't also be applied to 2.4, unless we are specifically trying to
maintain different behavior for scanf between the two kernel versions.

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/

- 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/