From 42d931a271ba66c868f8005d4d3463f0977e4438 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Fri, 11 Feb 2022 06:43:59 -0800 Subject: [PATCH] Use parens to fix output We want our ternary conditional to evaluate before the << operator, so we use parenthesis to make this happen. Bug: 214615268 Test: TreeHugger Change-Id: I0efb22487d0cf3778f8a12d2391a0f1a7a87995d --- .../audio/utils/aidl_session/BluetoothAudioSession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp index 967b6f3825..b90a656f79 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp @@ -426,8 +426,8 @@ void BluetoothAudioSession::ReportLowLatencyModeAllowedChanged(bool allowed) { for (auto& observer : observers_) { uint16_t cookie = observer.first; std::shared_ptr callback = observer.second; - LOG(INFO) << __func__ << " - allowed=" - << allowed ? " allowed" : " disallowed"; + LOG(INFO) << __func__ + << " - allowed=" << (allowed ? " allowed" : " disallowed"); callback->low_latency_mode_allowed_cb_(cookie, allowed); } } @@ -599,4 +599,4 @@ BluetoothAudioSessionInstance::GetSessionInstance( } // namespace bluetooth } // namespace hardware } // namespace android -} // namespace aidl \ No newline at end of file +} // namespace aidl