Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204834
b: refs/heads/master
c: 70ed074
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Michal Marek committed Jun 2, 2010
1 parent 4a92f14 commit 252d484
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b040b44c35c251882da8488a5f038435a531312c
refs/heads/master: 70ed074718a6704ac2f82d014f372ba25c42ba12
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *s
}

str_append(gs, str);
if (sym)
if (sym && sym->type != S_UNKNOWN)
str_printf(gs, " [=%s]", sym_str);
}

Expand Down
8 changes: 8 additions & 0 deletions trunk/scripts/kconfig/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,14 @@ void get_symbol_str(struct gstr *r, struct symbol *sym)
str_printf(r, "Symbol: %s [=%s]\n", sym->name,
sym_get_string_value(sym));
str_printf(r, "Type : %s\n", sym_type_name(sym->type));
if (sym->type == S_INT || sym->type == S_HEX) {
prop = sym_get_range_prop(sym);
if (prop) {
str_printf(r, "Range : ");
expr_gstr_print(prop->expr, r);
str_append(r, "\n");
}
}
}
for_all_prompts(sym, prop)
get_prompt_str(r, prop);
Expand Down

0 comments on commit 252d484

Please sign in to comment.