From aa7b576da6d5e496cc2ae1d385a840c6cc303e73 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Fri, 19 Aug 2011 16:04:53 +0200 Subject: [PATCH] --- yaml --- r: 274300 b: refs/heads/master c: db57630b7a4f6991e6d5997fbc3cf6be55d76d23 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/menu.c | 13 +++++-------- trunk/scripts/kconfig/nconf.c | 2 -- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index cba452ecbe04..2b25bea17221 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 50bce3e80773e06316fcb92796ff26b42348d30b +refs/heads/master: db57630b7a4f6991e6d5997fbc3cf6be55d76d23 diff --git a/trunk/scripts/kconfig/menu.c b/trunk/scripts/kconfig/menu.c index d66008639a43..8c2a97e60faf 100644 --- a/trunk/scripts/kconfig/menu.c +++ b/trunk/scripts/kconfig/menu.c @@ -10,8 +10,7 @@ #include "lkc.h" -static const char nohelp_text[] = N_( - "There is no help available for this option.\n"); +static const char nohelp_text[] = "There is no help available for this option."; struct menu rootmenu; static struct menu **last_entry_ptr; @@ -595,16 +594,14 @@ struct gstr get_relations_str(struct symbol **sym_arr) void menu_get_ext_help(struct menu *menu, struct gstr *help) { struct symbol *sym = menu->sym; + const char *help_text = nohelp_text; if (menu_has_help(menu)) { - if (sym->name) { + if (sym->name) str_printf(help, "%s%s:\n\n", CONFIG_, sym->name); - str_append(help, _(menu_get_help(menu))); - str_append(help, "\n"); - } - } else { - str_append(help, nohelp_text); + help_text = menu_get_help(menu); } + str_printf(help, "%s\n", _(help_text)); if (sym) get_symbol_str(help, sym); } diff --git a/trunk/scripts/kconfig/nconf.c b/trunk/scripts/kconfig/nconf.c index 39ca1f1640ea..b113c50209e3 100644 --- a/trunk/scripts/kconfig/nconf.c +++ b/trunk/scripts/kconfig/nconf.c @@ -182,8 +182,6 @@ setmod_text[] = N_( "This feature depends on another which\n" "has been configured as a module.\n" "As a result, this feature will be built as a module."), -nohelp_text[] = N_( -"There is no help available for this option.\n"), load_config_text[] = N_( "Enter the name of the configuration file you wish to load.\n" "Accept the name shown to restore the configuration you\n"