zephyr/samples/net
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
..
capture samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
cloud modules: mbedtls: convert mbedTLS log levels to Zephyr log levels 2022-08-17 12:03:52 +02:00
common
dhcpv4_client ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
dns_resolve all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
dsa ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
eth_native_posix samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
gptp ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
gsm_modem samples: net: gsm_modem: Update sample to remove use of DT_INST 2022-07-21 17:26:44 -05:00
ipv4_autoconf all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
lldp samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
lwm2m_client samples: net: lwm2m_client: Updated RD client event handler 2022-08-04 13:42:55 +02:00
mdns_responder ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
mqtt_publisher samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
openthread/coprocessor samples: net: openthread: coprocessor: remove Kconfig IEEE802154 choice 2022-08-10 11:57:34 +02:00
promiscuous_mode all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
sockets ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
stats samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
syslog_net logging: Remove logging v1 from the logging 2022-06-16 10:51:15 -04:00
telnet all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
virtual all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
vlan samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
wifi samples: net: Remove label property from devicetree overlays 2022-07-19 10:30:39 +02:00
wpan_serial samples: net: wpan(usb|serial): filter based on zephyr,ieee802154 2022-08-10 11:57:34 +02:00
wpanusb samples: net: wpan(usb|serial): filter based on zephyr,ieee802154 2022-08-10 11:57:34 +02:00
zperf net: zperf: Extract zperf into library 2022-08-10 11:15:21 +02:00
net.rst