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

Commit c6ddac39 authored by Zhengping Jiang's avatar Zhengping Jiang
Browse files

Fix log format when masking the address to protect privacy

Without a space after the colon, when masking the address for privacy,
the colon is parsed as part of the address and cause confusion in the
log.

Example of a parsed log:
> cannot be add[MAC OUI=ed:00:0a IFACE=9]:35[PUBLIC_DEVICE_ADDRESS]

Bug: 273417286
Test: Test: m Bluetooth | ./build.py

Change-Id: I51fa65b02f2dea6da91e7aa5f62f82c783696950
parent 5baf6747
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -816,7 +816,8 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {

  void remove_device_from_connect_list(AddressWithType address_with_type) {
    if (connect_list.find(address_with_type) == connect_list.end()) {
      LOG_WARN("Device not in acceptlist and cannot be removed:%s",
      LOG_WARN(
          "Device not in acceptlist and cannot be removed: %s",
          ADDRESS_TO_LOGGABLE_CSTR(address_with_type));
      return;
    }