diff options
| author | Michael Lentine <mlentine@google.com> | 2015-11-03 16:19:46 -0800 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-11-05 16:00:02 -0700 |
| commit | 0d55f09ecbe7254db557d9144d3c45847ae4fca5 (patch) | |
| tree | 4c304fd0c477dd875ccd26a9ab4d591e44822d32 /layers/device_limits.cpp | |
| parent | f0f935ee01e1aa4cbf10b13b41c67f8b9e6fae70 (diff) | |
| download | usermoji-0d55f09ecbe7254db557d9144d3c45847ae4fca5.tar.xz | |
layers: Fix printf formats
Add validation to printf format strings
Diffstat (limited to 'layers/device_limits.cpp')
| -rw-r--r-- | layers/device_limits.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp index d055fe5b..a62d72b8 100644 --- a/layers/device_limits.cpp +++ b/layers/device_limits.cpp @@ -242,7 +242,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices(VkInstance instance, u return result; } else { log_msg(my_data->report_data, VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_INSTANCE, 0, 0, DEVLIMITS_INVALID_INSTANCE, "DL", - "Invalid instance (%#" PRIxLEAST64 ") passed into vkEnumeratePhysicalDevices().", instance); + "Invalid instance (%#" PRIxLEAST64 ") passed into vkEnumeratePhysicalDevices().", (uint64_t)instance); } return VK_ERROR_VALIDATION_FAILED; } @@ -305,7 +305,7 @@ VK_LAYER_EXPORT void VKAPI vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDe return; } else { log_msg(phy_dev_data->report_data, VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_PHYSICAL_DEVICE, 0, 0, DEVLIMITS_INVALID_PHYSICAL_DEVICE, "DL", - "Invalid physicalDevice (%#" PRIxLEAST64 ") passed into vkGetPhysicalDeviceQueueFamilyProperties().", physicalDevice); + "Invalid physicalDevice (%#" PRIxLEAST64 ") passed into vkGetPhysicalDeviceQueueFamilyProperties().", (uint64_t)physicalDevice); } } |
