Re: [1/3] kgdb-lite for 2.6.3

From: Bartlomiej Zolnierkiewicz
Date: Sun Feb 22 2004 - 14:50:31 EST


On Sunday 22 of February 2004 21:22, Sam Ravnborg wrote:
> Just some random comments after browsing the code.
>
> Sam
>
> > +
> > +int kgdb_hexToLong(char **ptr, long *longValue);
>
> A patch has been posted by Tom Rini to convert this to the
> linux naming: kgdb_hex2long(...).
>
> +static const char hexchars[] = "0123456789abcdef";
> Grepping after 0123456789 in the src tree gives a lot of hits.
> Maybe we should pull in some functionality from klibc, and place it in lib/
> at some point in time.

It is already there, in lib/vsprintf.c: simple_strtoul() and simple_strtol().

--bart

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