summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.y
diff options
context:
space:
mode:
authorDirk Gouders2018-06-22 21:27:38 +0200
committerMasahiro Yamada2018-06-28 15:47:47 +0200
commitecd53ac2f2c6e42fe732d0aa282192cb6ad3faea (patch)
tree1d5732c4b41c92070316003e5b380a76b0b43cc3 /scripts/kconfig/zconf.y
parentkconfig: document Kconfig source file comments (diff)
downloadkernel-qcow2-linux-ecd53ac2f2c6e42fe732d0aa282192cb6ad3faea.tar.gz
kernel-qcow2-linux-ecd53ac2f2c6e42fe732d0aa282192cb6ad3faea.tar.xz
kernel-qcow2-linux-ecd53ac2f2c6e42fe732d0aa282192cb6ad3faea.zip
kconfig: handle P_SYMBOL in print_symbol()
Each symbol has a property of type P_SYMBOL since commit 59e89e3ddf85 (kconfig: save location of config symbols). Handle those properties in print_symbol(). Further, place a pointer to print_symbol() in the comment above the list of known property type. Signed-off-by: Dirk Gouders <dirk@gouders.net> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.y')
-rw-r--r--scripts/kconfig/zconf.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index ed84d4a8e288..4b68272ebdb9 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -717,6 +717,10 @@ static void print_symbol(FILE *out, struct menu *menu)
print_quoted_string(out, prop->text);
fputc('\n', out);
break;
+ case P_SYMBOL:
+ fputs( " symbol ", out);
+ fprintf(out, "%s\n", prop->sym->name);
+ break;
default:
fprintf(out, " unknown prop %d!\n", prop->type);
break;