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

Commit 2e2de92d authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add extra logs by default inside sdp_copy_raw_data()

The extra logging is needed for investigating an issue that
is hard to reproduce.

Test: code compilation
Bug: 31795382
Change-Id: Ibe500e332dba8f44485b44bcac32d11be52520a6
parent 6c796ed5
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -348,11 +348,11 @@ static void sdp_copy_raw_data(tCONN_CB* p_ccb, bool offset) {
    if (list_len && list_len < cpy_len) {
      cpy_len = list_len;
    }
#if (SDP_DEBUG_RAW == TRUE)
    SDP_TRACE_WARNING("list_len :%d cpy_len:%d raw_size:%d raw_used:%d",
                      list_len, cpy_len, p_ccb->p_db->raw_size,
                      p_ccb->p_db->raw_used);
#endif
    SDP_TRACE_WARNING(
        "%s: list_len:%d cpy_len:%d p:%p p_ccb:%p p_db:%p raw_size:%d "
        "raw_used:%d raw_data:%p",
        __func__, list_len, cpy_len, p, p_ccb, p_ccb->p_db,
        p_ccb->p_db->raw_size, p_ccb->p_db->raw_used, p_ccb->p_db->raw_data);
    memcpy(&p_ccb->p_db->raw_data[p_ccb->p_db->raw_used], p, cpy_len);
    p_ccb->p_db->raw_used += cpy_len;
  }