The latest development version of this page may be more current than this released 2.0.0 version.
CONFIG_LOG_PRINTK_MAX_STRING_LENGTH

Maximum string length supported by LOG_PRINTK

Type: int

Help

Array is allocated on the stack.

Direct dependencies

LOG_PRINTK && (!LOG_IMMEDIATE || USERSPACE) && LOG

(Includes any dependencies from ifs and menus.)

Defaults

  • 128

Kconfig definition

At subsys/logging/Kconfig:95

Included via Kconfig:10Kconfig.zephyr:44subsys/Kconfig:20

Menu path: (Top) → Logging → Enable processing of printk messages.

config LOG_PRINTK_MAX_STRING_LENGTH
    int "Maximum string length supported by LOG_PRINTK"
    default 128
    depends on LOG_PRINTK && (!LOG_IMMEDIATE || USERSPACE) && LOG
    help
      Array is allocated on the stack.

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