:orphan: .. title:: CONFIG_LOG_DETECT_MISSED_STRDUP .. kconfig:: CONFIG_LOG_DETECT_MISSED_STRDUP CONFIG_LOG_DETECT_MISSED_STRDUP ############################### *Detect missed handling of transient strings* Type: ``bool`` Help ==== .. code-block:: none If enabled, logger will assert and log error message is it detects that string format specifier (%s) and string address which is not from read only memory section and not from pool used for string duplicates. String argument must be duplicated in that case using log_strdup(). Detection is performed during log processing thus it does not impact logging timing. Direct dependencies =================== \ :kconfig:`SOC_ESP32C3 ` || \ :kconfig:`SOC_ESP32 ` || \ :kconfig:`SOC_ESP32S2 ` || \ :kconfig:`SOC_ESP32C3 ` || \ :kconfig:`SOC_ESP32 ` || \ :kconfig:`SOC_ESP32S2 ` || (\ :kconfig:`LOG_MODE_DEFERRED ` && !\ :kconfig:`LOG_MINIMAL ` && !\ :kconfig:`LOG_FRONTEND ` && !\ :kconfig:`LOG_MINIMAL ` && \ :kconfig:`LOG `) *(Includes any dependencies from ifs and menus.)* Defaults ======== - n - n - n - n - n - n - y if !\ :kconfig:`LOG_IMMEDIATE ` Kconfig definitions =================== At ``/riscv/esp32c3/Kconfig.defconfig:38`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:25`` → ``/kconfig/Kconfig.soc.defconfig:1`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32C3 ---- At ``/xtensa/esp32/Kconfig.defconfig:20`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:25`` → ``/kconfig/Kconfig.soc.defconfig:1`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32 ---- At ``/xtensa/esp32s2/Kconfig.defconfig:35`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:25`` → ``/kconfig/Kconfig.soc.defconfig:1`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32S2 ---- At ``/riscv/esp32c3/Kconfig.defconfig:38`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:27`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32C3 ---- At ``/xtensa/esp32/Kconfig.defconfig:20`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:27`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32 ---- At ``/xtensa/esp32s2/Kconfig.defconfig:35`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:27`` Menu path: (Top) .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool default n depends on SOC_ESP32S2 ---- At ``/logging/Kconfig.processing:113`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:31`` → ``/logging/Kconfig:21`` Menu path: (Top) → Sub Systems and OS Services → Logging → Processing .. code-block:: kconfig config LOG_DETECT_MISSED_STRDUP bool "Detect missed handling of transient strings" default y if !LOG_IMMEDIATE depends on LOG_MODE_DEFERRED && !LOG_MINIMAL && !LOG_FRONTEND && !LOG_MINIMAL && LOG help If enabled, logger will assert and log error message is it detects that string format specifier (%s) and string address which is not from read only memory section and not from pool used for string duplicates. String argument must be duplicated in that case using log_strdup(). Detection is performed during log processing thus it does not impact logging timing. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*