summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Strachan2018-10-17 16:48:21 -0500
committerAlistair Strachan2018-10-17 16:49:42 -0500
commita44c2af7a19892ec748c25e741104dbd1ab22c61 (patch)
tree74e2088def712139adb619da17a2b6abbeca0eaf
parent4a3b507428beaa282b07597019a49cfe3f7e1bc3 (diff)
downloadhardware-ti-am57x-a44c2af7a19892ec748c25e741104dbd1ab22c61.tar.gz
hardware-ti-am57x-a44c2af7a19892ec748c25e741104dbd1ab22c61.tar.xz
hardware-ti-am57x-a44c2af7a19892ec748c25e741104dbd1ab22c61.zip
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
462 continue; 462 continue;
463 463
464 if (contents->numHwLayers == 0) { 464 if (contents->numHwLayers == 0) {
465 ALOGW("Prepare given no content for display %d", i); 465 ALOGW("Prepare given no content for display %zu", i);
466 continue; 466 continue;
467 } 467 }
468 468
@@ -531,7 +531,7 @@ static int hwc_set(struct hwc_composer_device_1* dev, size_t numDisplays, hwc_di
531 continue; 531 continue;
532 532
533 if (contents->numHwLayers == 0) { 533 if (contents->numHwLayers == 0) {
534 ALOGE("Set given no content for display %d", i); 534 ALOGE("Set given no content for display %zu", i);
535 continue; 535 continue;
536 } 536 }
537 537