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_CBPRINTF_N_SPECIFIER

Support %n specifications

Type: bool

Help

If selected %n can be used to determine the number of characters
emitted.  If enabled there is a small increase in code size.

Direct dependencies

CBPRINTF_COMPLETE

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At lib/os/Kconfig.cbprintf:99

Included via Kconfig:8Kconfig.zephyr:41lib/Kconfig:10lib/os/Kconfig:81

Menu path: (Top) → Additional libraries → OS Support Library

config CBPRINTF_N_SPECIFIER
    bool "Support %n specifications"
    default y
    depends on CBPRINTF_COMPLETE
    help
      If selected %n can be used to determine the number of characters
      emitted.  If enabled there is a small increase in code size.

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