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

Commit d7d98aff authored by Chris Manton's avatar Chris Manton
Browse files

gd: Silence logging warnings from enums

Bug: 322230000
Test: mma -j32
Flag: EXEMPT, logging-only change

Change-Id: I3ac16660753b1010610d4d37aca80c1427031b0e
parent 5c8ab1b7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -46,8 +46,7 @@ struct VendorSpecificEventManager::impl {
  void register_event(VseSubeventCode event, common::ContextualCallback<void(VendorSpecificEventView)> handler) {
    ASSERT_LOG(
        subevent_handlers_.count(event) == 0,
        "Can not register a second handler for %02hhx (%s)",
        event,
        "Can not register a second handler opcode:%s",
        VseSubeventCodeText(event).c_str());
    subevent_handlers_[event] = handler;
  }
+4 −1
Original line number Diff line number Diff line
@@ -65,7 +65,10 @@ void SecurityManagerImpl::DispatchPairingHandler(
      break;
    }
    default:
      ASSERT_LOG(false, "Pairing type %hhu not implemented!", record->GetPseudoAddress()->GetAddressType());
      ASSERT_LOG(
          false,
          "Pairing type %hhu not implemented!",
          (uint8_t)record->GetPseudoAddress()->GetAddressType());
  }
  auto new_entry = std::pair<hci::Address, std::shared_ptr<pairing::PairingHandler>>(
      record->GetPseudoAddress()->GetAddress(), pairing_handler);