:orphan: .. title:: CONFIG_PRINTK_SYNC .. kconfig:: CONFIG_PRINTK_SYNC CONFIG_PRINTK_SYNC ################## *Serialize printk() calls* Type: ``bool`` Help ==== .. code-block:: none 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 ======= - y if \ :kconfig:`SMP ` && \ :kconfig:`MP_NUM_CPUS ` > 1 Kconfig definition ================== At ``/os/Kconfig:24`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:43`` → ``/Kconfig:10`` Menu path: (Top) → Additional libraries → OS Support Library .. code-block:: kconfig 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.)*