zephyr/tests
Marcin Niestroj af37c09440 modules: mbedtls: convert mbedTLS log levels to Zephyr log levels
So far LOG_DBG() was used inside debug hook for mbedTLS library. This meant
that it was hard to distinct log messages by simply looking at the log
level number, even though Zephyr logging subsystem supports colorful logs
depending on log level.

Choose an appropriate Zephyr LOG_*() macro based on log level coming from
mbedTLS library. Remove log level number from formatted log messages, as it
is now redundant.

One controversial thing about this change is that mbedTLS' "2 State change"
log level is mapped to Zephyr's "warning" log level. Those are not really
warnings in real life, but rather informational messages. However, using
"warning" log level for those allows to clearly distinguish between "2
State change" and "3 Informational" debug messages from mbedTLS.
Additionally, mbedTLS debug message implementation does not seem to be safe
to use in production, so keeping in mind MBEDTLS_DEBUG will be enabled just
during debugging phase, printing "2 State change" logs as warnings should
not be a big deal.

Set default MBEDTLS_DEBUG_LEVEL value depending on selected Zephyr logging
module level, so that only single option needs to be configured in
application project.

Remove prompt for MBEDTLS_DEBUG_LEVEL, so that interactively (e.g. via
menuconfig) adjusting MBEDTLS_LOG_LEVEL will always result in automatically
updating MBEDTLS_DEBUG_LEVEL option. This is to prevent so called "stuck
symbol syndrome".

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-08-17 12:03:52 +02:00
..
application_development test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
arch tests: arch: arm: arm_interrupt: Increase stack size 2022-08-11 12:15:11 +02:00
benchmarks modules: mbedtls: convert mbedTLS log levels to Zephyr log levels 2022-08-17 12:03:52 +02:00
bluetooth Bluetooth: audio: Add security requirements check 2022-08-16 12:19:43 +02:00
boards flash: nios2_qspi: Convert driver to be devicetree based 2022-08-12 08:11:42 -04:00
boot/uefi
cmake/config_dir
crypto test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
drivers tests: Verify SBS Gauge driver on qemu_cortex_a9 2022-08-17 08:04:17 +00:00
kernel tests: kernel: poll: move the testcase to new ZTEST API 2022-08-17 08:14:10 +00:00
lib test: Add uoscore tests 2022-08-12 16:17:59 +02:00
misc test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
net tests: net: virtual: move to new ztest API 2022-08-15 08:13:15 +00:00
posix tests: samples: revert timeout change for FVP BaseR 2022-08-16 15:51:38 +02:00
subsys tests: subsys: pm: move device_runtime_api to new ztest API. 2022-08-15 18:40:17 +00:00
unit tests: unit: util: Add test for IS_EQ 2022-08-04 17:35:39 +01:00
ztest ztest: add test summary after all suites finish running 2022-08-11 09:01:12 -04:00