Skip to content

Commit

Permalink
lisa._kmod: Improve toolchain detection logging
Browse files Browse the repository at this point in the history
FEATURE

Make toolchain detection complain at warning level with a clear error if
a non-ideal toolchain has been selected.
  • Loading branch information
douglas-raillard-arm committed Jan 22, 2024
1 parent f387125 commit f5659b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisa/_kmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ def version_cmd(cc, cross_compile):

ideal_cc, _ = ccs[0]
if str(cc) != str(ideal_cc):
logger.info(f'Could not find ideal CC={ideal_cc} but found CC={cc} instead')
logger.warning(f'Could not find ideal CC={ideal_cc} but found CC={cc} instead. Results may vary from working fine to crashing the kernel')

return (cc, cross_compile, cc_key)

Expand Down

0 comments on commit f5659b7

Please sign in to comment.