Skip to content

Commit

Permalink
Bluetooth: Settings: Fix broken CONFIG_BT_SETTINGS_USE_PRINTK check
Browse files Browse the repository at this point in the history
The CONFIG_* prefix was missing, making the #ifdef always false.

Found with a script (CONFIG_BT_SETTINGS_USE_PRINTK was unused).

Signed-off-by: Ulf Magnusson <[email protected]>
  • Loading branch information
ulfalizer authored and jhedberg committed Oct 18, 2019
1 parent d0481f6 commit 91dc629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "hci_core.h"
#include "settings.h"

#if defined(BT_SETTINGS_USE_PRINTK)
#if defined(CONFIG_BT_SETTINGS_USE_PRINTK)
void bt_settings_encode_key(char *path, size_t path_size, const char *subsys,
bt_addr_le_t *addr, const char *key)
{
Expand Down

0 comments on commit 91dc629

Please sign in to comment.