Fixed bluedroid host build warning when log is disabled

This commit is contained in:
zhiweijian 2023-05-31 17:00:09 +08:00 committed by BOT
parent a6bcdf9637
commit fbf871a611
2 changed files with 2 additions and 0 deletions

View File

@ -405,6 +405,7 @@ static void command_timed_out(void *context)
{
hci_cmd_metadata_t *metadata = (hci_cmd_metadata_t *)(wait_entry->data);
HCI_TRACE_ERROR("%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, metadata->opcode);
UNUSED(metadata);
}
}

View File

@ -807,6 +807,7 @@ void l2cble_process_sig_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len)
STREAM_TO_UINT16(mps, p);
STREAM_TO_UINT16(credits, p);
L2CAP_TRACE_DEBUG("%s spsm %x, scid %x", __func__, spsm, scid);
UNUSED(spsm);
p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, scid);
if (p_ccb) {