summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/kconfig/conf.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 4e08121a35fb..283eeedaa4fa 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -422,8 +422,18 @@ static void check_conf(struct menu *menu)
422 if (sym_is_changable(sym) || 422 if (sym_is_changable(sym) ||
423 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { 423 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
424 if (input_mode == listnewconfig) { 424 if (input_mode == listnewconfig) {
425 if (sym->name && !sym_is_choice_value(sym)) { 425 if (sym->name) {
426 printf("%s%s\n", CONFIG_, sym->name); 426 const char *str;
427
428 if (sym->type == S_STRING) {
429 str = sym_get_string_value(sym);
430 str = sym_escape_string_value(str);
431 printf("%s%s=%s\n", CONFIG_, sym->name, str);
432 free((void *)str);
433 } else {
434 str = sym_get_string_value(sym);
435 printf("%s%s=%s\n", CONFIG_, sym->name, str);
436 }
427 } 437 }
428 } else { 438 } else {
429 if (!conf_cnt++) 439 if (!conf_cnt++)