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

CONFIG_PRINTK_SYNC

Serialize printk() calls

Type: bool

Help

When true, a spinlock will be taken around the output from a
single printk() call, preventing the output data from
interleaving with concurrent usage from another CPU or an
preempting interrupt.

Default

Kconfig definition

At lib/os/Kconfig:49

Included via Kconfig:8Kconfig.zephyr:43lib/Kconfig:10

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

config PRINTK_SYNC
    bool "Serialize printk() calls"
    default y if SMP && MP_NUM_CPUS > 1
    help
      When true, a spinlock will be taken around the output from a
      single printk() call, preventing the output data from
      interleaving with concurrent usage from another CPU or an
      preempting interrupt.

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