Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ed72b38 authored by Hemant Gupta's avatar Hemant Gupta Committed by Marie Janssen
Browse files

stack: AVRCP: add missing debug arguments

Fixes a crash while sending AVRCP Get Item Attribute response due to missing
function arguments.

Test: test with BMW kit, Crysler kit which trigger this bug

Bug: 37334553
Fixes: 37474772
Change-Id: Ie129e22e427896028a50e6b0ae8c2cdd151b0ea1
parent ad6b6d96
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1147,11 +1147,11 @@ static tAVRC_STS avrc_bld_get_item_attrs_rsp(tAVRC_GET_ATTRS_RSP* p_rsp,
  if (remaining_buffer_capacity > mtu) {
    remaining_buffer_capacity = mtu;
  }
  AVRC_TRACE_DEBUG("%s remaining_buffer_capacity:%d, mtu:%d",
  AVRC_TRACE_DEBUG("%s: remaining_buffer_capacity:%d, mtu:%d", __func__,
                   remaining_buffer_capacity, mtu);
  if (remaining_buffer_capacity < 5) {
    AVRC_TRACE_ERROR("%s not enough buffer for packet header",
                     remaining_buffer_capacity);
    AVRC_TRACE_ERROR("%s: not enough space for packet header, remaining:%d < 5",
                     __func__, remaining_buffer_capacity);
    return AVRC_STS_INTERNAL_ERR;
  }
  /* Get to the beginning of PDU */