Bluetooth: Audio: Modify broadcast_id prints/logs to use 24-bit

Always print/log the 24-bits (as hex) of the broadcast ID to better
use it with e.g. the shell.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-12-14 21:45:29 +01:00 committed by Carles Cufí
commit a180c013db
4 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ static void bap_broadcast_assistant_scan_cb(const struct bt_le_scan_recv_info *i
(void)memset(name, 0, sizeof(name));
bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr));
shell_print(ctx_shell, "[DEVICE]: %s (%s), broadcast_id %u, "
shell_print(ctx_shell, "[DEVICE]: %s (%s), broadcast_id 0x%06X, "
"interval (ms) %u), SID 0x%x, RSSI %i",
le_addr, name, broadcast_id, info->interval * 5 / 4,
info->sid, info->rssi);