From: Kenneth Graunke Date: Wed, 19 Jun 2019 16:57:01 +0000 (-0500) Subject: anv: Fix wrong printf formatter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c19d07b1cdcd22ced0f4e1c147e496b6ff5cf23;p=mesa.git anv: Fix wrong printf formatter %lu is for unsigned long, %zu is for size_t. Just cast the data. --- diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index a254f0a2c3c..ea01b2f04f9 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -113,7 +113,7 @@ static void anv_spirv_nir_debug(void *private_data, }; char buffer[256]; - snprintf(buffer, sizeof(buffer), "SPIR-V offset %lu: %s", spirv_offset, message); + snprintf(buffer, sizeof(buffer), "SPIR-V offset %lu: %s", (unsigned long) spirv_offset, message); vk_debug_report(&debug_data->device->instance->debug_report_callbacks, vk_flags[level],