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
This commit is contained in:
Simon Shi
2019-03-22 16:32:39 -05:00
committed by Ethan Yonker
parent a0a163586c
commit 8ae2b0d5dd
+1 -1
View File
@@ -198,7 +198,7 @@ static bool update_binary_has_legacy_properties(const char *binary) {
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");