Skip to content

Commit

Permalink
scripts: use debug function instead of debug_die to dump objs
Browse files Browse the repository at this point in the history
In step 4 of find_kobjects, use func debug instead of debug_die
to dump debug info to avoid dump wrong info.

Fixes: #25519.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
  • Loading branch information
wentongwu authored and nashif committed Jun 4, 2020
1 parent 3b80046 commit 4f120dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/elf_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,8 @@ def find_kobjects(self, syms):
if (not user_ram_allowed and
(addr >= app_smem_start and addr < app_smem_end)):

self.debug_die(die,
"object '%s' found in invalid location %s"
% (name, hex(addr)))
self.debug("object '%s' found in invalid location %s"
% (ko.type_obj.name, hex(addr)))
continue

if ko.type_obj.name != "device":
Expand Down

0 comments on commit 4f120dd

Please sign in to comment.