summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-22 22:40:59 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-22 22:42:36 +0200
commitd920dbeee3506c0fc46e1c5381b506da52fdd37b (patch)
tree2d76264fce8e469b1488a2dddd09f2e8709a7cbc /kconfiglib.py
parent85ba6b2d8558ca812ef53b97fa18df9f98c1e6dc (diff)
Use standard_sc_expr_str() in _name_and_loc()
Makes choices show up as <choice (name, if any)>, which is nice. Previously, just the name was shown for named choices.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 6b031ae..155a79d 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -5695,7 +5695,9 @@ def _decoding_error(e, filename, macro_linenr=None):
def _name_and_loc(sc):
# Helper for giving the symbol/choice name and location(s) in e.g. warnings
- name = sc.name or "<choice>"
+ # Reuse the expression format. That way choices show up as
+ # '<choice (name, if any)>'
+ name = standard_sc_expr_str(sc)
if not sc.nodes:
return name + " (undefined)"