size_report: give root node a unique identifier

Call the root node 'root', otherwise we end up with two nodes with the
same identifier ':'.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-06-03 19:27:01 -04:00 committed by Kumar Gala
parent 45bd3dee08
commit 39354d92bb

View file

@ -557,7 +557,7 @@ def generate_any_tree(symbol_dict, total_size, path_prefix):
"""
Generate a symbol tree for output.
"""
root = TreeNode('Symbols', ":")
root = TreeNode('Symbols', "root")
node_no_paths = TreeNode('(no paths)', ":", parent=root)
if Path(path_prefix) == Path(args.zephyrbase):