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

Commit 8ee3a48d authored by Hui Peng's avatar Hui Peng Committed by Gerrit Code Review
Browse files

Merge "Add logging statement in parse_gap_data" into main

parents 645f683a 833879e5
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;
      }