
On 7/10/22 21:31, Heinrich Schuchardt wrote:
Without setting CONFIG_LOG_MAX_LEVEL to a value above 6 we will not detect NULL dereferences and other errors in log_debug() calls.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index c509a924e6..4b87d96c76 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -31,6 +31,8 @@ CONFIG_CONSOLE_RECORD=y CONFIG_CONSOLE_RECORD_OUT_SIZE=0x6000 CONFIG_PRE_CONSOLE_BUFFER=y CONFIG_LOG=y +CONFIG_LOG_MAX_LEVEL=9 +CONFIG_LOG_DEFAULT_LEVEL=6 CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_STACKPROTECTOR=y CONFIG_ANDROID_AB=y
We will also have to adjust the following tests to consider the value of LOG_MAX_LEVEL:
FAILED test/py/tests/test_bind.py::test_bind_unbind_with_node - OSError: [Err... FAILED test/py/tests/test_bind.py::test_bind_unbind_with_uclass - AssertionEr... FAILED test/py/tests/test_ut.py::test_ut[ut_log_log_test_dropped] - Assertion... FAILED test/py/tests/test_ut.py::test_ut[ut_log_log_test_helpers] - assert False FAILED test/py/tests/test_ut.py::test_ut[ut_log_log_test_level_deny] - assert...
Best regards
Heinrich