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

Commit aa731e80 authored by Alice Kuo's avatar Alice Kuo Committed by Jakub Pawlowski
Browse files

Fix BT crash on SDP_AddAttribute as trace log enabled

Correct the parameter to be a point with an access specifier "%s".

Bug: 186603717
Bug: 170309700
Test: Manual to on/off Bluetooth
Ignore-AOSP-First: see b/170309700
Change-Id: Ibe45c3d32229c9fc287ca2d7997ace9509717059
parent 4ce703c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type,
        SDP_TRACE_DEBUG(
            "SDP_AddAttribute: handle:%X, id:%04X, type:%d, len:%d, p_val:%p, "
            "*p_val:%s",
            handle, attr_id, attr_type, attr_len, p_val, *p_val);
            handle, attr_id, attr_type, attr_len, p_val, (char*)p_val);
      } else {
        SDP_TRACE_DEBUG(
            "SDP_AddAttribute: handle:%X, id:%04X, type:%d, len:%d, p_val:%p",