diff options
author | John Stultz <jstultz@google.com> | 2024-02-13 20:40:36 -0800 |
---|---|---|
committer | John Stultz <jstultz@google.com> | 2024-02-13 20:53:13 -0800 |
commit | 71d983df51dd43ab67fc1f4870a87edb635cd499 (patch) | |
tree | d42435707fd7dab485fec95db71ba5c44113594e | |
parent | 1d7ddabafe4d675dff4bd1aff1330c068fa6a983 (diff) | |
download | drm_hwcomposer-71d983df51dd43ab67fc1f4870a87edb635cd499.tar.gz |
drm_hwcomposer: Fix build warning in HwcLayer::SetLayerBlendMode
In building with AOSP, I ran into the following warning:
external/drm_hwcomposer/hwc2_device/HwcLayer.cpp:44:43: warning: format specifies type 'int' but the argument has type 'BufferBlendMode' [-Wformat]
44 | ALOGE("Unknown blending mode b=%d", blend_mode_);
| ~~ ^~~~~~~~~~~
| static_cast<int>(
It seems odd to print the old blend_mode_ value here instead of the
passed-in mode argument. So switch it so we are printing the invalid
value given
Signed-off-by: John Stultz <jstultz@google.com>
Change-Id: Id0fc0a4a5ba093db5c4b6ac99255344fa5112879
-rw-r--r-- | hwc2_device/HwcLayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc2_device/HwcLayer.cpp b/hwc2_device/HwcLayer.cpp index dd5359f..12da418 100644 --- a/hwc2_device/HwcLayer.cpp +++ b/hwc2_device/HwcLayer.cpp @@ -41,7 +41,7 @@ HWC2::Error HwcLayer::SetLayerBlendMode(int32_t mode) { blend_mode_ = BufferBlendMode::kCoverage; break; default: - ALOGE("Unknown blending mode b=%d", blend_mode_); + ALOGE("Unknown blending mode b=%d", mode); blend_mode_ = BufferBlendMode::kUndefined; break; } |