kconfig: handle format string before calling conf_message_callback()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Jul 2018 02:46:12 +0000 (11:46 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 25 Jul 2018 14:24:35 +0000 (23:24 +0900)
commit5accd7f3360e891bd552312515387dbaa2bb4bf3
treed0bc381ad96ae3a69fa211fb2e9053f9d6de421e
parent693359f7ac9012778590a370d076b13db704255e
kconfig: handle format string before calling conf_message_callback()

As you see in mconf.c and nconf.c, conf_message_callback() hooks are
likely to end up with the boilerplate of vsnprintf().  Process the
string format before calling conf_message_callback() so that it
receives a simple string.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Dirk Gouders <dirk@gouders.net>
scripts/kconfig/confdata.c
scripts/kconfig/lkc_proto.h
scripts/kconfig/mconf.c
scripts/kconfig/nconf.c