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>
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 @@
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 @@
continue;
if (contents->numHwLayers == 0) {
- ALOGE("Set given no content for display %d", i);
+ ALOGE("Set given no content for display %zu", i);
continue;
}