commit | 4894038c006cb7feaeb182ec58014229c0279f36 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Feb 08 21:19:47 2024 -0800 |
committer | Andy Hung <hunga@google.com> | Fri Feb 09 15:50:15 2024 -0800 |
tree | 7ae689803390160ef8a87092f3b77f54ac381fb0 | |
parent | 4c6e33015b710ea041fbe9f90a817a4000c4dd54 [diff] [blame] |
audio: Fix clang warnings Generally these warnings come from -Wformat Test: compiles Bug: 324511705 Merged-In: I6129b0793e2aa85e9a2b407c473c766f61122d1b Change-Id: I6129b0793e2aa85e9a2b407c473c766f61122d1b
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp index 0057c9b..3dfd950 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -122,7 +122,8 @@ device->toAudioPort(&devicePort); if (status_t status = mpClientInterface->setDeviceConnectedState(&devicePort, state); status != OK) { - ALOGE("Error %d while setting connected state for device %s", state, + ALOGE("Error %d while setting connected state for device %s", + static_cast<int>(state), device->getDeviceTypeAddr().toString(false).c_str()); } }