From c2e7847daa5f588045254dd7da99e3001a5cd08f Mon Sep 17 00:00:00 2001 From: Andrzej Puzdrowski Date: Mon, 26 Nov 2018 14:25:34 +0100 Subject: [PATCH] bluetooth: common: Add BT hexdump Added BT alisa for dumping binary data to the logg. The macro will be useful for BT as reworked settings supports r/w of raw data - which will be widely leveraged in bluetooth storage alignment to reworked settings. Signed-off-by: Andrzej Puzdrowski --- subsys/bluetooth/common/log.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subsys/bluetooth/common/log.h b/subsys/bluetooth/common/log.h index b03ba05a101..84a9fa8fcb4 100644 --- a/subsys/bluetooth/common/log.h +++ b/subsys/bluetooth/common/log.h @@ -53,6 +53,9 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); k_oops(); \ } +#define BT_HEXDUMP_DBG(_data, _length, _str) \ + LOG_HEXDUMP_DBG((const u8_t *)_data, _length, _str) + const char *bt_hex_real(const void *buf, size_t len); const char *bt_addr_str_real(const bt_addr_t *addr); const char *bt_addr_le_str_real(const bt_addr_le_t *addr);