OSDN Git Service

Downgrade device no longer discoverable to DEBUG
authorChris Manton <cmanton@google.com>
Thu, 17 Sep 2020 00:45:26 +0000 (17:45 -0700)
committerChris Manton <cmanton@google.com>
Fri, 18 Sep 2020 17:50:28 +0000 (10:50 -0700)
Was: Warning

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: act.py -tc BleCocTest

Change-Id: Ib09ad9650d8b4aa6686fdce0c32a95084dd23e22

stack/btm/btm_ble_gap.cc

index a3daf5c..2612917 100644 (file)
@@ -1875,8 +1875,7 @@ void btm_ble_process_adv_pkt_cont(uint16_t evt_type, uint8_t addr_type,
   uint8_t result = btm_ble_is_discoverable(bda, adv_data);
   if (result == 0) {
     cache.Clear(addr_type, bda);
-    LOG_WARN("%s device no longer discoverable, discarding advertising packet",
-             __func__);
+    LOG_DEBUG("device no longer discoverable, discarding advertising packet");
     return;
   }