]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb918c0da6d6708517dc8f6dcb6445211541bb30
treed0bc381ad96ae3a69fa211fb2e9053f9d6de421e
parentb4014ed4732a2014930b02fc9e80902f19c89451
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