diff options
author | Masahiro Yamada | 2018-07-05 04:46:12 +0200 |
---|---|---|
committer | Masahiro Yamada | 2018-07-25 16:24:35 +0200 |
commit | 5accd7f3360e891bd552312515387dbaa2bb4bf3 (patch) | |
tree | d0bc381ad96ae3a69fa211fb2e9053f9d6de421e /scripts/kconfig/lkc_proto.h | |
parent | kconfig: rename SYMBOL_AUTO to SYMBOL_NO_WRITE (diff) | |
download | kernel-qcow2-linux-5accd7f3360e891bd552312515387dbaa2bb4bf3.tar.gz kernel-qcow2-linux-5accd7f3360e891bd552312515387dbaa2bb4bf3.tar.xz kernel-qcow2-linux-5accd7f3360e891bd552312515387dbaa2bb4bf3.zip |
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>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
-rw-r--r-- | scripts/kconfig/lkc_proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h index a8b7a330587e..cf4510a2bdc7 100644 --- a/scripts/kconfig/lkc_proto.h +++ b/scripts/kconfig/lkc_proto.h @@ -10,7 +10,7 @@ int conf_write(const char *name); int conf_write_autoconf(void); bool conf_get_changed(void); void conf_set_changed_callback(void (*fn)(void)); -void conf_set_message_callback(void (*fn)(const char *fmt, va_list ap)); +void conf_set_message_callback(void (*fn)(const char *s)); /* menu.c */ extern struct menu rootmenu; |