From 565a80450d28f6daa0ca8b98dad93924e712f94b Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Fri, 24 Jan 2020 23:45:40 +0100 Subject: [PATCH] iris: Explicitly cast value to uint64_t In FreeBSD x86 and aarch64 __u64 is typedef to unsigned long and is the same size as unsigned long long. Since we are explicitly specifying the format, cast the value to the proper type. Reviewed-by: Matt Turner Signed-off-by: Emmanuel Part-of: --- src/gallium/drivers/iris/iris_batch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index c0e4905b89b..6d1f6b86cbd 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -105,11 +105,11 @@ dump_validation_list(struct iris_batch *batch) uint64_t flags = batch->validation_list[i].flags; assert(batch->validation_list[i].handle == batch->exec_bos[i]->gem_handle); - fprintf(stderr, "[%2d]: %2d %-14s @ 0x%016llx (%"PRIu64"B)\t %2d refs %s\n", + fprintf(stderr, "[%2d]: %2d %-14s @ 0x%"PRIx64" (%"PRIu64"B)\t %2d refs %s\n", i, batch->validation_list[i].handle, batch->exec_bos[i]->name, - batch->validation_list[i].offset, + (uint64_t)batch->validation_list[i].offset, batch->exec_bos[i]->size, batch->exec_bos[i]->refcount, (flags & EXEC_OBJECT_WRITE) ? " (write)" : ""); -- 2.30.2