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)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 21:14:33 +0000 (22:14 +0100)
commitbd31bd1f7ab0d1b9250707f07d7ee728281793ff
tree0ffe7710e78d55108dfe8df31b1c8787db435d57
parent7f0e8ccbc37c5853e8c9ac3256ddb789b77c92c8
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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/confdata.c
config/lkc_proto.h