scripts: size_report: fix bug where key is used as a dict
When printing the unassigned values the 'sym' variable is used as a dict from which we try to get the 'name' value. However, 'symbols['unassigned']' gives a list of keys, so we get an 'TypeError' when trying to access ['name'] of a string (the key). Fix this issue by iterating over the values from the 'symbols['unassigned']' dict instead. Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
This commit is contained in:
parent
d4081fd07f
commit
c5c55ee47e
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ def main():
|
||||||
|
|
||||||
symbols = get_symbols(elf, addr_ranges)
|
symbols = get_symbols(elf, addr_ranges)
|
||||||
|
|
||||||
for sym in symbols['unassigned']:
|
for sym in symbols['unassigned'].values():
|
||||||
print("WARN: Symbol '{0}' is not in RAM or ROM".format(sym['name']))
|
print("WARN: Symbol '{0}' is not in RAM or ROM".format(sym['name']))
|
||||||
|
|
||||||
symbol_dict = None
|
symbol_dict = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue