diff options
| author | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
| commit | d30cc16c8e48368e0518f4975a78711e53e14a0f (patch) | |
| tree | 26b57f7ab5a963cc3d6c57dff6951bd930875583 /scripts/kconfig/menu.c | |
| parent | 41eb2d813f558900884e240c2f723e36c7bd151f (diff) | |
| parent | a1bcc1dcef8451b4291ea2a1b2677cb194102952 (diff) | |
| download | olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.tar.xz olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.zip  | |
Merge branch 'fixes-modulesplit' into fixes
Diffstat (limited to 'scripts/kconfig/menu.c')
| -rw-r--r-- | scripts/kconfig/menu.c | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index d66008639a4..8c2a97e60fa 100644 --- a/scripts/kconfig/menu.c +++ b/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);  }  |