summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
authorCheng Renquan <crquan@gmail.com>2009-07-12 16:11:47 +0800
committerSam Ravnborg <sam@ravnborg.org>2009-09-20 12:27:41 +0200
commitd74c15f3b71804472dde59355d4960ce8287dae8 (patch)
tree21efeb59823b303732e31722e469bf61a3bc5941 /scripts/kconfig/qconf.cc
parent1d525e7c1f8c34b74ddeb317f18c2ca9e9d81884 (diff)
downloadop-kernel-dev-d74c15f3b71804472dde59355d4960ce8287dae8.zip
op-kernel-dev-d74c15f3b71804472dde59355d4960ce8287dae8.tar.gz
kconfig: make use of menu_get_ext_help in qconfig
Signed-off-by: Cheng Renquan <crquan@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r--scripts/kconfig/qconf.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index ce7d508..00c5150 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1042,12 +1042,10 @@ void ConfigInfoView::menuInfo(void)
if (showDebug())
debug = debug_info(sym);
- help = menu_get_help(menu);
- /* Gettextize if the help text not empty */
- if (help.isEmpty())
- help = print_filter(menu_get_help(menu));
- else
- help = print_filter(_(menu_get_help(menu)));
+ struct gstr help_gstr = str_new();
+ menu_get_ext_help(menu, &help_gstr);
+ help = print_filter(str_get(&help_gstr));
+ str_free(&help_gstr);
} else if (menu->prompt) {
head += "<big><b>";
head += print_filter(_(menu->prompt->text));
OpenPOWER on IntegriCloud