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>
This commit is contained in:
parent
71d983df51
commit
ffe783c849
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue