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

Commit 833879e5 authored by Hui Peng's avatar Hui Peng
Browse files

Add logging statement in parse_gap_data

Bug: 297227667
Test: m com.android.btservices
Flag: EXEMPT, no logical change
Change-Id: I9b211419309bf8928e883931998b91089cc79adf
parent e65a8cc0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -14,8 +14,12 @@
 * limitations under the License.
 */

#define LOG_TAG "shim"

#include "utils.h"

#include "os/log.h"

namespace bluetooth {
namespace shim {
void parse_gap_data(const std::vector<uint8_t> &raw_data,
@@ -26,6 +30,7 @@ void parse_gap_data(const std::vector<uint8_t> &raw_data,
      uint8_t len = raw_data[offset];

      if (offset + len + 1 > raw_data.size()) {
        LOG_WARN("GAP data out of bound");
        break;
      }