Browse Source

scripts/logging: Allow targets that prefix global symbols with '_'

RX adds an underscore to all global symbols, so when we look for
log_const_ globals, we need to allow for that.

Signed-off-by: Keith Packard <keithp@keithp.com>
pull/92244/head
Keith Packard 2 months ago committed by Benjamin Cabé
parent
commit
296d81ad58
  1. 2
      scripts/logging/dictionary/database_gen.py

2
scripts/logging/dictionary/database_gen.py

@ -159,7 +159,7 @@ def find_log_const_symbols(elf): @@ -159,7 +159,7 @@ def find_log_const_symbols(elf):
continue
for symbol in section.iter_symbols():
if symbol.name.startswith("log_const_"):
if symbol.name.startswith("log_const_") or symbol.name.startswith("_log_const_"):
ret_list.append(symbol)
return ret_list

Loading…
Cancel
Save