summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-06-19 11:57:01 -0500
committerKenneth Graunke <[email protected]>2019-06-19 11:57:01 -0500
commit9c19d07b1cdcd22ced0f4e1c147e496b6ff5cf23 (patch)
tree9fa6deb0f41d1197e747683fc761630e2f249920
parentbbbf7a538c3d7a6b11569d8ff20c3e51f7c3eff0 (diff)
anv: Fix wrong printf formatter
%lu is for unsigned long, %zu is for size_t. Just cast the data.
-rw-r--r--src/intel/vulkan/anv_pipeline.c2
1 files changed, 1 insertions, 1 deletions
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],