From 6bcfceb0adcd6926f32b3ef7f45e663dcfb592f9 Mon Sep 17 00:00:00 2001 From: Jeremy Kniager Date: Mon, 2 Jul 2018 15:17:31 -0600 Subject: vulkaninfo: Fix warnings in maintenance3 printing Fixed incorrect number of arguments in print statements for VkPhysicalDeviceMaintenance3PropertiesKHR. Change-Id: If69e6873964364f324853ff996a4e405877f771a --- vulkaninfo/vulkaninfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c index f51121a4..fefb8798 100644 --- a/vulkaninfo/vulkaninfo.c +++ b/vulkaninfo/vulkaninfo.c @@ -2555,14 +2555,14 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) { VkPhysicalDeviceMaintenance3PropertiesKHR *maintenance3_props = (VkPhysicalDeviceMaintenance3PropertiesKHR*)structure; if (html_output) { fprintf(out, "\n\t\t\t\t\t
VkPhysicalDeviceMaintenance3Properties\n"); - fprintf(out, "\t\t\t\t\t\t
maxPerSetDescriptors =
" PRIuLEAST32 "
\n", maintenance3_props->maxPerSetDescriptors); - fprintf(out, "\t\t\t\t\t\t
maxMemoryAllocationSize =
" PRIuLEAST32 "
\n", maintenance3_props->maxMemoryAllocationSize); + fprintf(out, "\t\t\t\t\t\t
maxPerSetDescriptors =
%" PRIuLEAST32 "
\n", maintenance3_props->maxPerSetDescriptors); + fprintf(out, "\t\t\t\t\t\t
maxMemoryAllocationSize =
%" PRIuLEAST64 "
\n", maintenance3_props->maxMemoryAllocationSize); fprintf(out, "\t\t\t\t\t
\n"); } else if (human_readable_output) { printf("\nVkPhysicalDeviceMaintenance3Properties:\n"); printf("=======================================\n"); - printf("\tmaxPerSetDescriptors = " PRIuLEAST32 "\n", maintenance3_props->maxPerSetDescriptors ); - printf("\tmaxMemoryAllocationSize = " PRIuLEAST32 "\n", maintenance3_props->maxMemoryAllocationSize); + printf("\tmaxPerSetDescriptors = %" PRIuLEAST32 "\n", maintenance3_props->maxPerSetDescriptors ); + printf("\tmaxMemoryAllocationSize = %" PRIuLEAST64 "\n", maintenance3_props->maxMemoryAllocationSize); } } place = structure->pNext; -- cgit v1.2.3