Skip to content

Commit ecd53ac

Browse files
dgoudersmasahir0y
authored andcommitted
kconfig: handle P_SYMBOL in print_symbol()
Each symbol has a property of type P_SYMBOL since commit 59e89e3 (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>
1 parent bdb6010 commit ecd53ac

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎scripts/kconfig/expr.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ struct symbol {
171171
* config BAZ
172172
* int "BAZ Value"
173173
* range 1..255
174+
*
175+
* Please, also check zconf.y:print_symbol() when modifying the
176+
* list of property types!
174177
*/
175178
enum prop_type {
176179
P_UNKNOWN,

‎scripts/kconfig/zconf.y‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,10 @@ static void print_symbol(FILE *out, struct menu *menu)
717717
print_quoted_string(out, prop->text);
718718
fputc('\n', out);
719719
break;
720+
case P_SYMBOL:
721+
fputs( " symbol ", out);
722+
fprintf(out, "%s\n", prop->sym->name);
723+
break;
720724
default:
721725
fprintf(out, " unknown prop %d!\n", prop->type);
722726
break;

0 commit comments

Comments
 (0)