diff options
Diffstat (limited to 'examples/merge_config.py')
| -rwxr-xr-x | examples/merge_config.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/examples/merge_config.py b/examples/merge_config.py index ef11d79..528e86c 100755 --- a/examples/merge_config.py +++ b/examples/merge_config.py @@ -104,18 +104,6 @@ print(kconf.write_config(sys.argv[2])) # Print warnings for symbols whose actual value doesn't match the assigned # value - -def name_and_loc(sym): - # Helper for printing symbol names and Kconfig file location(s) in warnings - - if not sym.nodes: - return sym.name + " (undefined)" - - return "{} (defined at {})".format( - sym.name, - ", ".join("{}:{}".format(node.filename, node.linenr) - for node in sym.nodes)) - for sym in kconf.defined_syms: # Was the symbol assigned to? if sym.user_value is not None: @@ -129,5 +117,5 @@ for sym in kconf.defined_syms: if user_value != sym.str_value: print("warning: {} was assigned the value '{}' but got the " "value '{}' -- check dependencies".format( - name_and_loc(sym), user_value, sym.str_value), + sym.name_and_loc, user_value, sym.str_value), file=sys.stderr) |
