mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
kconfig: refactor listnewconfig code
We can reuse __print_symbol() helper to print symbols for listnewconfig. Only the difference is the format for "n" symbols. This prints "CONFIG_FOO=n" instead of "# CONFIG_FOO is not set". Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
@@ -667,6 +667,11 @@ static void print_symbol_for_autoconf(FILE *fp, struct symbol *sym)
|
||||
__print_symbol(fp, sym, OUTPUT_N_NONE, true);
|
||||
}
|
||||
|
||||
void print_symbol_for_listconfig(struct symbol *sym)
|
||||
{
|
||||
__print_symbol(stdout, sym, OUTPUT_N, true);
|
||||
}
|
||||
|
||||
static void print_symbol_for_c(FILE *fp, struct symbol *sym)
|
||||
{
|
||||
const char *val;
|
||||
|
||||
Reference in New Issue
Block a user