zephyr/samples
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 boards: remove unused tag from supported list 2022-08-10 11:57:34 +02:00
arch samples: do not use CONFIG_TEST_EXTRA_STACK_SIZE 2022-08-03 11:22:20 +02:00
basic drivers: led: Remove unnecessary Kconfig settings 2022-08-11 17:46:43 +02:00
bluetooth samples: bluetooth: set available contexts for unicast audio server 2022-08-10 16:10:48 +02:00
boards audio: remove defconfig/proj setting of audio drivers 2022-08-14 09:05:09 -05:00
compression
drivers samples: drivers: lora: Add public_network and iq_inverted config 2022-08-16 18:06:18 +02:00
hello_world
kernel samples: kernel: metairq: Update ReadMe 2022-08-03 14:00:22 -05:00
modules drivers: dai: Enable Zephyr runtime power mgmt in Intel SSP driver 2022-08-10 11:58:45 +02:00
net modules: mbedtls: convert mbedTLS log levels to Zephyr log levels 2022-08-17 12:03:52 +02:00
philosophers samples: do not use CONFIG_TEST_EXTRA_STACK_SIZE 2022-08-03 11:22:20 +02:00
posix
sensor samples: sensor: Remove adxl372 accelerometer sample 2022-08-09 12:27:07 +02:00
shields audio: remove defconfig/proj setting of audio drivers 2022-08-14 09:05:09 -05:00
subsys tests: samples: revert timeout change for FVP BaseR 2022-08-16 15:51:38 +02:00
synchronization
tfm_integration modules: tfm: Exclude non-secure TF-M application from build 2022-08-09 13:59:02 +02:00
userspace test: syscall_perf: Do not re-define csr_read 2022-07-18 12:22:00 -04:00
classic.rst
index.rst