From bc32a4bb04d13034c8134c931d536cedc4a9e03c Mon Sep 17 00:00:00 2001 From: Lenny Komow Date: Thu, 12 Jan 2017 15:47:53 -0700 Subject: loader: Fix phys device error message Change-Id: I37cfdb4b290dc8d5be7c606e32eb8d369ea43c6a --- loader/loader.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'loader') diff --git a/loader/loader.c b/loader/loader.c index 16bfcedb..c5e9dfc5 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -4685,10 +4685,11 @@ VkResult setupLoaderTrampPhysDevs(VkInstance instance) { total_count * sizeof(struct loader_physical_device_tramp *), VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); if (NULL == new_phys_devs) { - loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, - "setupLoaderTrampPhysDevs: Failed to new physical device " - "array of size %d", - total_count); + loader_log( + inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, + "setupLoaderTrampPhysDevs: Failed to allocate new physical device " + "array of size %d", + total_count); res = VK_ERROR_OUT_OF_HOST_MEMORY; goto out; } -- cgit v1.2.3