Merge "dmabuf_dump: Fix aosp_x86-eng builds"

This commit is contained in:
Tiger Huang 2019-06-27 08:37:08 +00:00 committed by Gerrit Code Review
commit 91913677c3
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ static void PrintDmaBufInfo(const std::vector<DmaBuffer>& bufs) {
// Iterate through all dmabufs and collect per-process sizes, refs
for (auto& buf : bufs) {
printf("%16" PRIu64 " |%13" PRIu64 " kB |%16" PRIu64 " |", buf.inode(), buf.size() / 1024,
buf.total_refs());
printf("%16ju |%13" PRIu64 " kB |%16" PRIu64 " |", static_cast<uintmax_t>(buf.inode()),
buf.size() / 1024, buf.total_refs());
// Iterate through each process to find out per-process references for each buffer,
// gather total size used by each process etc.
for (pid_t pid : pid_set) {