aboutsummaryrefslogtreecommitdiff
path: root/system/gd/os/android/metrics.cc
diff options
context:
space:
mode:
authorChen Chen <cncn@google.com>2023-02-27 18:35:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-02-27 18:35:49 +0000
commit5b689ffa3f30266d8726e76ac006a44a6eb73f9c (patch)
treec0cd87a4ec5e0dc94f469f3aa8d9c667fb47ebae /system/gd/os/android/metrics.cc
parentf92283eed2d737e50ea2ceb3b17e41e877747b9f (diff)
parent14ef5e58a493b196683fbae5dd397651fa68a538 (diff)
Merge "BluetoothMetrics: cast parameters for BluetoothLocalVersionsReported to avoid compiler ambiguity" into tm-qpr-dev
Diffstat (limited to 'system/gd/os/android/metrics.cc')
-rw-r--r--system/gd/os/android/metrics.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/gd/os/android/metrics.cc b/system/gd/os/android/metrics.cc
index eacaa727bc..400e92587a 100644
--- a/system/gd/os/android/metrics.cc
+++ b/system/gd/os/android/metrics.cc
@@ -443,7 +443,12 @@ void LogMetricBluetoothLocalVersions(
uint8_t hci_version,
uint32_t hci_revision) {
int ret = stats_write(
- BLUETOOTH_LOCAL_VERSIONS_REPORTED, lmp_manufacturer_name, lmp_version, lmp_subversion, hci_version, hci_revision);
+ BLUETOOTH_LOCAL_VERSIONS_REPORTED,
+ static_cast<int32_t>(lmp_manufacturer_name),
+ static_cast<int32_t>(lmp_version),
+ static_cast<int32_t>(lmp_subversion),
+ static_cast<int32_t>(hci_version),
+ static_cast<int32_t>(hci_revision));
if (ret < 0) {
LOG_WARN(
"Failed for LogMetricBluetoothLocalVersions, "