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

Commit c0a5bea6 authored by Patrick Liao's avatar Patrick Liao Committed by Gerrit Code Review
Browse files

Merge "Fix sig variable not parsed yet when printing verbose log in avdt_msg_ind" into main

parents e925f1b0 cf42f165
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,6 @@ void avdt_msg_ind(AvdtpCcb* p_ccb, BT_HDR* p_buf) {
  /* parse the message header */
  AVDT_MSG_PRS_HDR(p, label, pkt_type, msg_type);

  log::verbose("msg_type={}, sig={}", msg_type, sig);
  /* set up label and ccb_idx in message hdr */
  msg.hdr.label = label;
  msg.hdr.ccb_idx = avdt_ccb_to_idx(p_ccb);
@@ -1580,6 +1579,8 @@ void avdt_msg_ind(AvdtpCcb* p_ccb, BT_HDR* p_buf) {
    }
  }

  log::verbose("msg_type={}, sig={}", msg_type, sig);

  if (ok && !gen_rej) {
    /* skip over header (msg length already verified during reassembly) */
    p_buf->len -= AVDT_LEN_TYPE_SINGLE;