]> git.baikalelectronics.ru Git - kernel.git/commit
lib: pull base-guessing logic to helper function
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 16 Oct 2008 20:40:34 +0000 (13:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 21:58:07 +0000 (14:58 -0700)
commitab3f2de0dd9bd44747d3e2336890aef8d26e9ba0
treec5b7b23186e6a47f56f00b139bf61a8faa477692
parent631f8e60c27109c30ddc5ea01b58b12c358a4bdf
lib: pull base-guessing logic to helper function

The default base is 10 unless there is a leading zero, in which
case the base will be guessed as 8.

The base will only be guesed as 16 when the string starts with '0x'
the third character is a valid hex digit.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c