Skip to content

Commit 2a6249f

Browse files
keith-packardduynguyenxa
authored andcommitted
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>
1 parent 0ba8614 commit 2a6249f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/logging/dictionary/database_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def find_log_const_symbols(elf):
159159
continue
160160

161161
for symbol in section.iter_symbols():
162-
if symbol.name.startswith("log_const_"):
162+
if symbol.name.startswith("log_const_") or symbol.name.startswith("_log_const_"):
163163
ret_list.append(symbol)
164164

165165
return ret_list

0 commit comments

Comments
 (0)