freedreno/replay: use inttypes format string for 64bit

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29142>
This commit is contained in:
Mike Blumenkrantz
2024-05-10 15:52:16 -04:00
committed by Marge Bot
parent 654ef35635
commit ae8fbe220a

View File

@@ -393,10 +393,10 @@ device_dump_wrbuf(struct device *dev)
uint64_t offset = wrbuf->iova - buf->iova;
uint64_t size = MIN2(wrbuf->size, buf->size - offset);
if (size != wrbuf->size) {
fprintf(stderr, "Warning: Clamping buffer %s as it's smaller than expected (0x%lx < 0x%lx)\n", wrbuf->name, size, wrbuf->size);
fprintf(stderr, "Warning: Clamping buffer %s as it's smaller than expected (0x%" PRIx64 " < 0x%" PRIx64 ")\n", wrbuf->name, size, wrbuf->size);
}
printf("Dumping %s (0x%lx - 0x%lx)\n", wrbuf->name, wrbuf->iova, wrbuf->iova + size);
printf("Dumping %s (0x%" PRIx64 " - 0x%" PRIx64 ")\n", wrbuf->name, wrbuf->iova, wrbuf->iova + size);
fwrite(buf->map + offset, size, 1, f);