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_PRINTK

Send printk() to console

Type: bool

Help

This option directs printk() debugging output to the supported
console device, rather than suppressing the generation
of printk() output entirely. Output is sent immediately, without
any mutual exclusion or buffering.

Default

  • y

Symbols that imply this symbol

Kconfig definition

At subsys/debug/Kconfig:165

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:17

Menu path: (Top) → Sub Systems and OS Services → Debugging Options

config PRINTK
    bool "Send printk() to console"
    default y
    help
      This option directs printk() debugging output to the supported
      console device, rather than suppressing the generation
      of printk() output entirely. Output is sent immediately, without
      any mutual exclusion or buffering.

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