This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_LOG_STRDUP_BUF_COUNT

Number of buffers in the pool used by log_strdup()

Type: int

Help

Number of calls to log_strdup() which can be pending before flushed
to output. If "<log_strdup alloc failed>" message is seen in the log
output, it means this value is too small and should be increased.
Each entry takes CONFIG_LOG_STRDUP_MAX_STRING bytes of memory plus
some additional fixed overhead.

Direct dependencies

LOG_MODE_DEFERRED && !LOG_MINIMAL && !LOG_FRONTEND && !LOG_MINIMAL && LOG

(Includes any dependencies from ifs and menus.)

Defaults

  • 8 if BT

  • 4

Kconfig definition

At subsys/logging/Kconfig.processing:133

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:31subsys/logging/Kconfig:21

Menu path: (Top) → Sub Systems and OS Services → Logging → Processing

config LOG_STRDUP_BUF_COUNT
    int "Number of buffers in the pool used by log_strdup()"
    default 8 if BT
    default 4
    depends on LOG_MODE_DEFERRED && !LOG_MINIMAL && !LOG_FRONTEND && !LOG_MINIMAL && LOG
    help
      Number of calls to log_strdup() which can be pending before flushed
      to output. If "<log_strdup alloc failed>" message is seen in the log
      output, it means this value is too small and should be increased.
      Each entry takes CONFIG_LOG_STRDUP_MAX_STRING bytes of memory plus
      some additional fixed overhead.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)