twinstall: Force variable type
Force the usage of variable type since it is different on the 32-bit
devices. Use this commit to avoid the problem.
bugs:
bootable/recovery/twinstall.cpp:201:67: error: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long long' [-Werror,-Wformat]
LOGINFO("has_legacy_properties: mmap (size=%zu) failed: %s!\n", finfo.st_size, strerror(errno));
~~~ ^~~~~~~~~~~~~
%lld
Change-Id: Ie0c51a90490e0c069fff33884a9431a97361f5c6
diff --git a/twinstall.cpp b/twinstall.cpp
index f451ca5..fa6b859 100644
--- a/twinstall.cpp
+++ b/twinstall.cpp
@@ -198,7 +198,7 @@
void *data = mmap(NULL, finfo.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
if (data == MAP_FAILED) {
- LOGINFO("has_legacy_properties: mmap (size=%zu) failed: %s!\n", finfo.st_size, strerror(errno));
+ LOGINFO("has_legacy_properties: mmap (size=%zu) failed: %s!\n", (size_t)finfo.st_size, strerror(errno));
} else {
if (memmem(data, finfo.st_size, str_to_match, len_to_match)) {
LOGINFO("has_legacy_properties: Found legacy property match!\n");