"kernel log_level" shell command should not crash on invalid module name #83804
Labels
area: Logging
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
Zephyr crashes when you run the command "kernel log_level" with a garbage log source.
I originally saw this on an ARM board I'm working on, but I can also reproduce this with QEMU as well.
To Reproduce
Expected behavior
It should just print an error and not crash.
Impact
Nothing for me really. I just fumbled the command and was surprised it crashed!
Logs and console output
It seems to crash in
set_runtime_filter
withsource_id == UINT_MAX
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: