diff options
author | Sandeep Patil <sspatil@google.com> | 2019-06-27 01:21:11 -0700 |
---|---|---|
committer | Sandeep Patil <sspatil@google.com> | 2019-07-01 18:16:52 -0700 |
commit | 85aa081c83963affee7a2aa6959a62d9d3189388 (patch) | |
tree | bc0146b750414ace07c07e2df840b66d3e7e2398 | |
parent | 852f553ca2350cb8aadea0f0cf92ad2707c77131 (diff) | |
download | core-85aa081c83963affee7a2aa6959a62d9d3189388.tar.gz |
dmabuf_dump: Fix aosp_x86-eng builds
Test: lunch aosp_x86-eng; mma -j
Test: lunch aosp_blueline-eng; mma -j
Bug: 136136199
Change-Id: Ie6f90c967b356a55db09acee7b3596661e001166
Merged-In: Ie6f90c967b356a55db09acee7b3596661e001166
Signed-off-by: Sandeep Patil <sspatil@google.com>
-rw-r--r-- | libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp index 567eb1ce6..9a80c82fc 100644 --- a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp +++ b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp @@ -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) { |