Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -6023,7 +6023,8 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateInstance(const VkInstanceCreateI
res = VK_ERROR_OUT_OF_HOST_MEMORY;
goto out;
} else if (VK_SUCCESS != icd_result) {
loader_log(ptr_instance, VULKAN_LOADER_WARN_BIT, 0,
VkFlags log_level = VK_ERROR_INCOMPATIBLE_DRIVER == icd_result ? VULKAN_LOADER_DEBUG_BIT : VULKAN_LOADER_WARN_BIT;
loader_log(ptr_instance, log_level, 0,
Comment on lines +6026 to +6027

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this in a local variable as it was tricky otherwise to keep clang-format happy, the line would be slightly too long and it would throw 0, to its own line, which doesn't match the style used elsewhere.

Alternatively, this could be:

            loader_log(ptr_instance,
                       VK_ERROR_INCOMPATIBLE_DRIVER == icd_result ? VULKAN_LOADER_DEBUG_BIT : VULKAN_LOADER_WARN_BIT,
                       0,
                       "terminator_CreateInstance: Received return code %i from call to vkCreateInstance in ICD %s. Skipping "
                       "this driver.",
                       icd_result, icd_term->scanned_icd->lib_name);

"terminator_CreateInstance: Received return code %i from call to vkCreateInstance in ICD %s. Skipping "
"this driver.",
icd_result, icd_term->scanned_icd->lib_name);
Expand Down
Loading