kconfig: allow "hex" and "range" to support longs
authorKees Cook <keescook@chromium.org>
Fri, 28 Jun 2013 19:56:51 +0000 (12:56 -0700)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 20:21:18 +0000 (22:21 +0200)
commit48f3c1c38c4e6b786938dbe813743953e722b01e
tree218bb2a2b6ae3ffd663646130cb1320d02546984
parentac96562775253a6e5258959a7ca3c7c707794a2f
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>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/symbol.c