scripts: use debug function instead of debug_die to dump objs

In step 4 of find_kobjects, use func debug instead of debug_die
to dump debug info to avoid dump wrong info.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
Wentong Wu 2020-05-21 17:13:12 +08:00 committed by Carles Cufí
commit 6c9d4a5c57

View file

@ -611,8 +611,8 @@ def find_kobjects(elf, syms):
_, user_ram_allowed = kobjects[ko.type_obj.name]
if not user_ram_allowed and app_smem_start <= addr < app_smem_end:
debug_die(die, "object '%s' found in invalid location %s"
% (name, hex(addr)))
debug("object '%s' found in invalid location %s"
% (ko.type_obj.name, hex(addr)))
continue
if ko.type_obj.name != "device":