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

Commit 65d970ca authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Automerger Merge Worker
Browse files

Merge "btm_iso: Use loghex for logging handles" am: dec97f0a am: 99ce13ca am: 9d00eaa9

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1994731

Change-Id: Ieefbaa1f56546983e9d3dc0859f67c21b96482ba
parents 4f5ebfd8 9d00eaa9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ struct iso_impl {

  void remove_iso_data_path(uint16_t iso_handle, uint8_t data_path_dir) {
    iso_base* iso = GetIsoIfKnown(iso_handle);
    LOG_ASSERT(iso != nullptr) << "No such iso connection: " << +iso_handle;
    LOG_ASSERT(iso != nullptr) << "No such iso connection: " << loghex(iso_handle);
    LOG_ASSERT((iso->state_flags & kStateFlagHasDataPathSet) ==
               kStateFlagHasDataPathSet)
        << "Data path not set";
@@ -373,7 +373,7 @@ struct iso_impl {
  void read_iso_link_quality(uint16_t iso_handle) {
    iso_base* iso = GetIsoIfKnown(iso_handle);
    if (iso == nullptr) {
      LOG(ERROR) << __func__ << "No such iso connection: " << +iso_handle;
      LOG(ERROR) << __func__ << "No such iso connection: " << loghex(iso_handle);
      return;
    }

@@ -416,7 +416,7 @@ struct iso_impl {
                     uint16_t data_len) {
    iso_base* iso = GetIsoIfKnown(iso_handle);
    LOG_ASSERT(iso != nullptr)
        << "No such iso connection handle: " << +iso_handle;
        << "No such iso connection handle: " << loghex(iso_handle);

    if (!(iso->state_flags & kStateFlagIsBroadcast)) {
      if (!(iso->state_flags & kStateFlagIsConnected)) {
@@ -426,7 +426,7 @@ struct iso_impl {
      }
    }
    LOG_ASSERT(iso->state_flags & kStateFlagHasDataPathSet)
        << "Data path not set for handle: " << +iso_handle;
        << "Data path not set for handle: " << loghex(iso_handle);

    /* Calculate sequence number for the ISO data packet.
     * It should be incremented by 1 every SDU Interval.