Skip to content

Commit 4f208f3

Browse files
committed
kconfig: show '?' prompt even if no help text is available
'make config', 'make oldconfig', etc. always receive '?' as a valid input and show useful information even if no help text is available. ------------------------>8------------------------ foo (FOO) [N/y] (NEW) ? There is no help available for this option. Symbol: FOO [=n] Type : bool Prompt: foo Defined at Kconfig:1 ------------------------>8------------------------ However, '?' is not shown in the prompt if its help text is missing. Let's show '?' all the time so that the prompt and the behavior match. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
1 parent cb67ab2 commit 4f208f3

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎scripts/kconfig/conf.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ static int conf_sym(struct menu *menu)
199199
printf("/m");
200200
if (oldval != yes && sym_tristate_within_range(sym, yes))
201201
printf("/y");
202-
if (menu_has_help(menu))
203-
printf("/?");
204-
printf("] ");
202+
printf("/?] ");
205203
if (!conf_askvalue(sym, sym_get_string_value(sym)))
206204
return 0;
207205
strip(line);
@@ -303,10 +301,7 @@ static int conf_choice(struct menu *menu)
303301
printf("[1]: 1\n");
304302
goto conf_childs;
305303
}
306-
printf("[1-%d", cnt);
307-
if (menu_has_help(menu))
308-
printf("?");
309-
printf("]: ");
304+
printf("[1-%d?]: ", cnt);
310305
switch (input_mode) {
311306
case oldconfig:
312307
case silentoldconfig:

0 commit comments

Comments
 (0)