From 0a92453a1443692c70ccab9abd8c8408872036e1 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 7 Feb 2019 21:35:03 -0800 Subject: [PATCH] Fix 32-bit dmabuf_dump build Fixes: system/core/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp:109:39: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat] Test: lunch aosp_arm-eng && m dmabuf_dump Change-Id: Ie605d9b94f5eff888f6a64801512216253a6babb --- libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp index 223c001ae..5ee9c3d17 100644 --- a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp +++ b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp @@ -105,7 +105,7 @@ static void PrintDmaBufInfo(const std::vector& bufs) { for (auto buf = bufs.begin(); buf != bufs.end(); ++buf) { - std::cout << ::android::base::StringPrintf("%16lu\t%10" PRIu64 "\t%lu\t", + std::cout << ::android::base::StringPrintf("%16lu\t%10" PRIu64 "\t%" PRIu64 "\t", buf->inode(),buf->size(), buf->count()); memset(fds.get(), 0, sizeof(int) * pid_count);