Skip to content

Commit 9b68fbe

Browse files
keith-packardnashif
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 <[email protected]>
1 parent cf3cc8f commit 9b68fbe

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
@@ -166,7 +166,7 @@ def find_log_const_symbols(elf):
166166
continue
167167

168168
for symbol in section.iter_symbols():
169-
if symbol.name.startswith("log_const_"):
169+
if symbol.name.startswith("log_const_") or symbol.name.startswith("_log_const_"):
170170
ret_list.append(symbol)
171171

172172
return ret_list

0 commit comments

Comments
 (0)