OSDN Git Service

Log proper btif/src/btif_bqr::ConfigureBqr
authorChris Manton <cmanton@google.com>
Thu, 24 Sep 2020 17:57:39 +0000 (10:57 -0700)
committerChris Manton <cmanton@google.com>
Tue, 29 Sep 2020 15:24:28 +0000 (15:24 +0000)
Towards loggable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Change-Id: I56d3b55cbf6eee6b55cfa66f718451dae3aee1db

btif/src/btif_bqr.cc

index e77fecf..0f27613 100644 (file)
@@ -266,7 +266,8 @@ void ConfigureBqr(const BqrConfiguration& bqr_config) {
     return;
   }
 
-  LOG(INFO) << __func__ << ": Action: " << bqr_config.report_action
+  LOG(INFO) << __func__ << ": Action: "
+            << loghex(static_cast<uint8_t>(bqr_config.report_action))
             << ", Mask: " << loghex(bqr_config.quality_event_mask)
             << ", Interval: " << bqr_config.minimum_report_interval_ms;