diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2010-04-13 23:44:20 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-04-14 09:34:18 -0400 |
commit | c6ccc30fd7870879981de03feeec61029754b0ea (patch) | |
tree | 0d89b1fd6a862140d9dd9e10def9e9d6687bef89 /scripts/kconfig/zconf.tab.c_shipped | |
parent | 4280eae0990190d190dfa7dab9bca480215d5b19 (diff) |
kconfig: fix zconfdump()
zconfdump(), which is used for debugging, can't recognize P_SELECT,
P_RANGE and P_MENU (if associated with a symbol, aka "menuconfig"),
and output something like this:
config X86
boolean
default y
unknown prop 6!
unknown prop 6!
unknown prop 6!
...
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/zconf.tab.c_shipped')
-rw-r--r-- | scripts/kconfig/zconf.tab.c_shipped | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped index 7df3264c3f3d..32a9eefd842c 100644 --- a/scripts/kconfig/zconf.tab.c_shipped +++ b/scripts/kconfig/zconf.tab.c_shipped | |||
@@ -2336,9 +2336,9 @@ static void print_symbol(FILE *out, struct menu *menu) | |||
2336 | struct property *prop; | 2336 | struct property *prop; |
2337 | 2337 | ||
2338 | if (sym_is_choice(sym)) | 2338 | if (sym_is_choice(sym)) |
2339 | fprintf(out, "choice\n"); | 2339 | fprintf(out, "\nchoice\n"); |
2340 | else | 2340 | else |
2341 | fprintf(out, "config %s\n", sym->name); | 2341 | fprintf(out, "\nconfig %s\n", sym->name); |
2342 | switch (sym->type) { | 2342 | switch (sym->type) { |
2343 | case S_BOOLEAN: | 2343 | case S_BOOLEAN: |
2344 | fputs(" boolean\n", out); | 2344 | fputs(" boolean\n", out); |
@@ -2384,6 +2384,21 @@ static void print_symbol(FILE *out, struct menu *menu) | |||
2384 | case P_CHOICE: | 2384 | case P_CHOICE: |
2385 | fputs(" #choice value\n", out); | 2385 | fputs(" #choice value\n", out); |
2386 | break; | 2386 | break; |
2387 | case P_SELECT: | ||
2388 | fputs( " select ", out); | ||
2389 | expr_fprint(prop->expr, out); | ||
2390 | fputc('\n', out); | ||
2391 | break; | ||
2392 | case P_RANGE: | ||
2393 | fputs( " range ", out); | ||
2394 | expr_fprint(prop->expr, out); | ||
2395 | fputc('\n', out); | ||
2396 | break; | ||
2397 | case P_MENU: | ||
2398 | fputs( " menu ", out); | ||
2399 | print_quoted_string(out, prop->text); | ||
2400 | fputc('\n', out); | ||
2401 | break; | ||
2387 | default: | 2402 | default: |
2388 | fprintf(out, " unknown prop %d!\n", prop->type); | 2403 | fprintf(out, " unknown prop %d!\n", prop->type); |
2389 | break; | 2404 | break; |
@@ -2395,7 +2410,6 @@ static void print_symbol(FILE *out, struct menu *menu) | |||
2395 | menu->help[len] = 0; | 2410 | menu->help[len] = 0; |
2396 | fprintf(out, " help\n%s\n", menu->help); | 2411 | fprintf(out, " help\n%s\n", menu->help); |
2397 | } | 2412 | } |
2398 | fputc('\n', out); | ||
2399 | } | 2413 | } |
2400 | 2414 | ||
2401 | void zconfdump(FILE *out) | 2415 | void zconfdump(FILE *out) |
@@ -2428,7 +2442,6 @@ void zconfdump(FILE *out) | |||
2428 | expr_fprint(prop->visible.expr, out); | 2442 | expr_fprint(prop->visible.expr, out); |
2429 | fputc('\n', out); | 2443 | fputc('\n', out); |
2430 | } | 2444 | } |
2431 | fputs("\n", out); | ||
2432 | } | 2445 | } |
2433 | 2446 | ||
2434 | if (menu->list) | 2447 | if (menu->list) |