kconfig: allow "hex" and "range" to support longs
authorKees Cook <keescook@chromium.org>
Fri, 28 Jun 2013 19:56:51 +0000 (12:56 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 29 Jun 2013 13:30:17 +0000 (15:30 +0200)
commitb57caaaed2bd127fe656e6c145970ed6a05c0125
tree5c0e7308b579cc3bd94bac072d1b400274f8dc4b
parent490f16171119a16e05d670306c105f3b45c38837
kconfig: allow "hex" and "range" to support longs

The parsing routines for Kconfig files use strtol(), but store and
render values as int. Switch types and formating to long to support a
wider range of values. For example, 0x80000000 wasn't representable.

Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/kconfig/symbol.c