CONFIG_LOG2_USE_VLA

Using variable length arrays

Type: bool

Help

Using VLA slightly decreases stack usage in some cases it may not be
supported. Note that VLA are used for arrays which size is resolved at
compile time so at runtime arrays have fixed size.

Direct dependencies

LOG

(Includes any dependencies from ifs and menus.)

Default

Kconfig definition

At <Zephyr>/subsys/logging/Kconfig.misc:29

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:44<Zephyr>/subsys/Kconfig:31<Zephyr>/subsys/logging/Kconfig:27

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

config LOG2_USE_VLA
    bool "Using variable length arrays"
    default y if !MISRA_SANE
    depends on LOG
    help
      Using VLA slightly decreases stack usage in some cases it may not be
      supported. Note that VLA are used for arrays which size is resolved at
      compile time so at runtime arrays have fixed size.

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