aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <jstultz@google.com>2024-02-14 10:51:27 -0800
committerJohn Stultz <jstultz@google.com>2024-02-14 10:51:27 -0800
commitffe783c84995accfeac4788e0f862d9609e4ddca (patch)
treeb61b9b9e6c7a1ac2b1026a1757087936b65d1356
parent71d983df51dd43ab67fc1f4870a87edb635cd499 (diff)
downloaddrm_hwcomposer-ffe783c84995accfeac4788e0f862d9609e4ddca.tar.gz
drm_hwcomposer: Fix another build warning in HwcDisplay::SetPowerMode()
Building with AOSP I see: external/drm_hwcomposer/hwc2_device/HwcDisplay.cpp:768:50: warning: format specifies type 'int' but the argument has type 'HWC2::PowerMode' [-Wformat] 768 | ALOGE("Incorrect power mode value (%d)\n", mode); | ~~ ^~~~ | static_cast<int>( So this patch tweaks the message to use integer mode_in argument to the function. Change-Id: I9211733137ad194d5040a1d497b008b4c2c491dd Signed-off-by: John Stultz <jstultz@google.com>
-rw-r--r--hwc2_device/HwcDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc2_device/HwcDisplay.cpp b/hwc2_device/HwcDisplay.cpp
index c9d9a68..6f08c33 100644
--- a/hwc2_device/HwcDisplay.cpp
+++ b/hwc2_device/HwcDisplay.cpp
@@ -765,7 +765,7 @@ HWC2::Error HwcDisplay::SetPowerMode(int32_t mode_in) {
case HWC2::PowerMode::DozeSuspend:
return HWC2::Error::Unsupported;
default:
- ALOGE("Incorrect power mode value (%d)\n", mode);
+ ALOGE("Incorrect power mode value (%d)\n", mode_in);
return HWC2::Error::BadParameter;
}