Skip to content

Commit 3e9f81e

Browse files
committed
drivers: bluetooth: Fix bt_keys log issues
Fixed issues where older versions of "bt_addr_le_str" and "bt_hex" are no longer available. Signed-off-by: Jared Baumann <jared.baumann8@t-mobile.com>
1 parent 9c5329e commit 3e9f81e

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

drivers/bluetooth/custom/rs9116w/rs9116w_ble_core.h

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,17 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME, LOG_LEVEL);
9393
#define BT_WARN(fmt, ...) LOG_WRN(fmt, ##__VA_ARGS__)
9494
#define BT_INFO(fmt, ...) LOG_INF(fmt, ##__VA_ARGS__)
9595

96-
97-
const char *bt_hex_real(const void *buf, size_t len);
98-
99-
const char *bt_addr_str_real(const bt_addr_t *addr);
100-
101-
const char *bt_addr_le_str_real(const bt_addr_le_t *addr);
102-
103-
const char *bt_uuid_str_real(const struct bt_uuid *uuid);
104-
10596
void rsi_connection_cleanup_task(void);
10697

107-
#define bt_hex(buf, len) bt_hex_real(buf, len)
108-
#define bt_addr_str(addr) bt_addr_str_real(addr)
109-
#define bt_addr_le_str(addr) bt_addr_le_str_real(addr)
110-
#define bt_uuid_str(uuid) bt_uuid_str_real(uuid)
111-
112-
11398
void rsi_bt_raise_evt(void);
11499

100+
/* NOTE: These helper functions encode into a shared buffer. Therefore, the
101+
* output must be copied/preserved before making subsequent helper function
102+
* calls.
103+
*/
104+
const char *bt_hex(const void *buf, size_t len);
105+
const char *bt_addr_str(const bt_addr_t *addr);
106+
const char *bt_addr_le_str(const bt_addr_le_t *addr);
107+
const char *bt_uuid_str(const struct bt_uuid *uuid);
108+
115109
#endif

0 commit comments

Comments
 (0)