CONFIG_BT_SETTINGS_USE_PRINTK

Use snprintk to encode Bluetooth settings key strings

Type: bool

Help

When selected, Bluetooth settings will use snprintk to encode key strings. When not selected, Bluetooth settings will use a faster builtin function to encode the key string. The drawback is that if printk is enabled then the program memory footprint will be larger.

Direct dependencies

SETTINGS && PRINTK && BT_SETTINGS && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At subsys/bluetooth/host/Kconfig:212

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:6subsys/bluetooth/Kconfig:160

Menu path: (Top) → Bluetooth → Store Bluetooth state and configuration persistently

config BT_SETTINGS_USE_PRINTK
    bool "Use snprintk to encode Bluetooth settings key strings"
    default y
    depends on SETTINGS && PRINTK && BT_SETTINGS && BT_HCI_HOST && BT_HCI && BT
    help
      When selected, Bluetooth settings will use snprintk to encode
      key strings.
      When not selected, Bluetooth settings will use a faster builtin
      function to encode the key string. The drawback is that if
      printk is enabled then the program memory footprint will be larger.

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