@@ -411,6 +411,17 @@ conf_childs:
indent -= 2;
}
+
+static void
+listnewconfig_print_symbol(FILE *fp, struct symbol *sym, const char *val, void *arg)
+{
+ fprintf(fp, "%s%s (default: %s)\n", CONFIG_, sym->name, val);
+}
+
+static struct conf_printer listnewconfig_printers = {
+ .print_symbol = listnewconfig_print_symbol,
+};
+
static void check_conf(struct menu *menu)
{
struct symbol *sym;
@@ -425,7 +436,8 @@ static void check_conf(struct menu *menu)
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
if (input_mode == listnewconfig) {
if (sym->name && !sym_is_choice_value(sym)) {
- printf("%s%s\n", CONFIG_, sym->name);
+ conf_write_symbol(stdout, sym,
+ &listnewconfig_printers, NULL);
}
} else if (input_mode != oldnoconfig) {
if (!conf_cnt++)
@@ -548,8 +548,8 @@ static struct conf_printer tristate_printer_cb =
*
*/
-static void conf_write_symbol(FILE *fp, struct symbol *sym,
- struct conf_printer *printer, void *printer_arg)
+void conf_write_symbol(FILE *fp, struct symbol *sym,
+ struct conf_printer *printer, void *printer_arg)
{
const char *str;