Fix clang build breakage (-Werror -Wformat).

Use %zd for size_t. Note that this will break only on (-plus-)aosp because
clang is disabled on the N development branches.

bug: 30963384
Change-Id: I4b5ba7caf15bc2ebf5bb3395d82170ec786ed50c
This commit is contained in:
Narayan Kamath
2016-08-29 12:31:41 +01:00
parent c5f27a7cb2
commit b334c33d65

View File

@@ -404,7 +404,7 @@ class FileDescriptorTable {
// //
// TODO(narayan): This will be an error in a future android release. // TODO(narayan): This will be an error in a future android release.
// error = true; // error = true;
ALOGW("Zygote opened %d new file descriptor(s).", open_fds.size()); ALOGW("Zygote opened %zd new file descriptor(s).", open_fds.size());
// TODO(narayan): This code will be removed in a future android release. // TODO(narayan): This code will be removed in a future android release.
std::set<int>::const_iterator it; std::set<int>::const_iterator it;