:orphan: .. title:: LOG_DETECT_MISSED_STRDUP .. option:: CONFIG_LOG_DETECT_MISSED_STRDUP *Detect missed handling of transient strings* Type: ``bool`` 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. Direct dependencies =================== \ :option:`LOG_MODE_DEFERRED ` && !\ :option:`LOG_MINIMAL ` && !\ :option:`LOG_FRONTEND ` && !\ :option:`LOG_MINIMAL ` && \ :option:`LOG ` *(Includes any dependencies from ifs and menus.)* Default ======= - y if !\ :option:`LOG_IMMEDIATE ` Kconfig definition ================== .. highlight:: kconfig At ``subsys/logging/Kconfig.processing:101`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:34`` → ``subsys/Kconfig:31`` → ``subsys/logging/Kconfig:23`` Menu path: (Top) → Sub Systems and OS Services → Logging → Processing .. parsed-literal:: config LOG_DETECT_MISSED_STRDUP bool "Detect missed handling of transient strings" default y if !\ :option:`LOG_IMMEDIATE ` depends on \ :option:`LOG_MODE_DEFERRED ` && !\ :option:`LOG_MINIMAL ` && !\ :option:`LOG_FRONTEND ` && !\ :option:`LOG_MINIMAL ` && \ :option:`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.)*