The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/util: Fix printf on 32-bit

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
f230446c 06b91dab

+7 -4
+7 -4
src/xrt/compositor/util/comp_swapchain.c
··· 17 17 18 18 #include <stdio.h> 19 19 #include <stdlib.h> 20 + #include <inttypes.h> 20 21 21 22 22 23 /* ··· 294 295 { 295 296 VkResult ret; 296 297 297 - VK_DEBUG(vk, "CREATE %p %dx%d %s (%ld)", (void *)sc, // 298 - info->width, info->height, // 298 + VK_DEBUG(vk, "CREATE %p %" PRIu32 "x%" PRIu32 " %s (%" PRId64 ")", // 299 + (void *)sc, // 300 + info->width, info->height, // 299 301 vk_format_string(info->format), info->format); 300 302 301 303 if ((info->create & XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT) != 0) { ··· 342 344 { 343 345 VkResult ret; 344 346 345 - VK_DEBUG(vk, "IMPORT %p %dx%d %s (%ld)", (void *)sc, // 346 - info->width, info->height, // 347 + VK_DEBUG(vk, "IMPORT %p %" PRIu32 "x%" PRIu32 " %s (%" PRId64 ")", // 348 + (void *)sc, // 349 + info->width, info->height, // 347 350 vk_format_string(info->format), info->format); 348 351 349 352 set_common_fields(sc, destroy_func, vk, cscgc, native_image_count);