diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/mconf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index d0e4fa594fc7..d2c2a429887b 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -419,11 +419,13 @@ static void search_conf(void) | |||
419 | { | 419 | { |
420 | struct symbol **sym_arr; | 420 | struct symbol **sym_arr; |
421 | struct gstr res; | 421 | struct gstr res; |
422 | char *dialog_input; | ||
422 | int dres; | 423 | int dres; |
423 | again: | 424 | again: |
424 | dialog_clear(); | 425 | dialog_clear(); |
425 | dres = dialog_inputbox(_("Search Configuration Parameter"), | 426 | dres = dialog_inputbox(_("Search Configuration Parameter"), |
426 | _("Enter CONFIG_ (sub)string to search for (omit CONFIG_)"), | 427 | _("Enter CONFIG_ (sub)string to search for " |
428 | "(with or without \"CONFIG\")"), | ||
427 | 10, 75, ""); | 429 | 10, 75, ""); |
428 | switch (dres) { | 430 | switch (dres) { |
429 | case 0: | 431 | case 0: |
@@ -435,7 +437,12 @@ again: | |||
435 | return; | 437 | return; |
436 | } | 438 | } |
437 | 439 | ||
438 | sym_arr = sym_re_search(dialog_input_result); | 440 | /* strip CONFIG_ if necessary */ |
441 | dialog_input = dialog_input_result; | ||
442 | if (strncasecmp(dialog_input_result, "CONFIG_", 7) == 0) | ||
443 | dialog_input += 7; | ||
444 | |||
445 | sym_arr = sym_re_search(dialog_input); | ||
439 | res = get_relations_str(sym_arr); | 446 | res = get_relations_str(sym_arr); |
440 | free(sym_arr); | 447 | free(sym_arr); |
441 | show_textbox(_("Search Results"), str_get(&res), 0, 0); | 448 | show_textbox(_("Search Results"), str_get(&res), 0, 0); |