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

Commit 118d4a17 authored by Chris Manton's avatar Chris Manton
Browse files

dumpsys: Clarify dumpsys acceptlist sizing

Bug: 183374320
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I37e29f239f48f3547a20f156886bd20c72253b7d
parent d8c35e10
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -859,9 +859,10 @@ struct shim::legacy::Acl::impl {
    for (auto& entry : history) {
      LOG_DEBUG("%s", entry.c_str());
    }
    LOG_DEBUG("Shadow le accept list  size:%hhu",
              controller_get_interface()->get_ble_acceptlist_size());
    const auto acceptlist = shadow_acceptlist_.GetCopy();
    LOG_DEBUG("Shadow le accept list  size:%-3zu controller_max_size:%hhu",
              acceptlist.size(),
              controller_get_interface()->get_ble_acceptlist_size());
    for (auto& entry : acceptlist) {
      LOG_DEBUG("acceptlist:%s", entry.ToString().c_str());
    }
@@ -874,10 +875,12 @@ struct shim::legacy::Acl::impl {
    for (auto& entry : history) {
      LOG_DUMPSYS(fd, "%s", entry.c_str());
    }
    LOG_DUMPSYS(fd, "Shadow le accept list  size:%hhu",
    auto acceptlist = shadow_acceptlist_.GetCopy();
    LOG_DUMPSYS(fd,
                "Shadow le accept list  size:%-3zu controller_max_size:%hhu",
                acceptlist.size(),
                controller_get_interface()->get_ble_acceptlist_size());
    unsigned cnt = 0;
    auto acceptlist = shadow_acceptlist_.GetCopy();
    for (auto& entry : acceptlist) {
      LOG_DUMPSYS(fd, "%03u le acceptlist:%s", ++cnt, entry.ToString().c_str());
    }