summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Strachan <astrachan@google.com>2018-10-17 14:48:21 -0700
committerAlistair Strachan <astrachan@google.com>2018-10-17 14:49:42 -0700
commita44c2af7a19892ec748c25e741104dbd1ab22c61 (patch)
tree74e2088def712139adb619da17a2b6abbeca0eaf
parent4a3b507428beaa282b07597019a49cfe3f7e1bc3 (diff)
downloadam57x-a44c2af7a19892ec748c25e741104dbd1ab22c61.tar.gz
libhwcomposer: Fix two ALOGE format strings
When printing a size_t, %zu should be used, not %d. Fixes error: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Werror,-Wformat] Change-Id: I4af927d0715424a90c6434d1a0e1db01202b113d Signed-off-by: Alistair Strachan <astrachan@google.com>
-rw-r--r--libhwcomposer/hwc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index b04c548..354a5e9 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -462,7 +462,7 @@ static int hwc_prepare(struct hwc_composer_device_1* dev, size_t numDisplays, hw
continue;
if (contents->numHwLayers == 0) {
- ALOGW("Prepare given no content for display %d", i);
+ ALOGW("Prepare given no content for display %zu", i);
continue;
}
@@ -531,7 +531,7 @@ static int hwc_set(struct hwc_composer_device_1* dev, size_t numDisplays, hwc_di
continue;
if (contents->numHwLayers == 0) {
- ALOGE("Set given no content for display %d", i);
+ ALOGE("Set given no content for display %zu", i);
continue;
}