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& 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(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) {