anv: Fix wrong printf formatter

%lu is for unsigned long, %zu is for size_t.  Just cast the data.
This commit is contained in:
Kenneth Graunke 2019-06-19 11:57:01 -05:00
parent bbbf7a538c
commit 9c19d07b1c
1 changed files with 1 additions and 1 deletions

View File

@ -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],