From: Emmanuel Date: Fri, 24 Jan 2020 22:45:40 +0000 (+0100) Subject: iris: Explicitly cast value to uint64_t X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=565a80450d28f6daa0ca8b98dad93924e712f94b;p=mesa.git 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: --- 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)" : "");