From 0cbb8504629c763211dd119865253a47e4475bce Mon Sep 17 00:00:00 2001
From: Jakob Bornecrantz <jakob@collabora.com>
Date: Sat, 28 May 2022 23:38:04 +0100
Subject: [PATCH] c/util: Improve debug printing when importing swapchain

---
 src/xrt/compositor/util/comp_swapchain.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xrt/compositor/util/comp_swapchain.c b/src/xrt/compositor/util/comp_swapchain.c
index 8a570d033..f421d78ff 100644
--- a/src/xrt/compositor/util/comp_swapchain.c
+++ b/src/xrt/compositor/util/comp_swapchain.c
@@ -336,7 +336,9 @@ comp_swapchain_import(struct vk_bundle *vk,
 
 	struct comp_swapchain *sc = alloc_and_set_funcs(vk, cscgc, images_count);
 
-	VK_DEBUG(vk, "CREATE FROM NATIVE %p %dx%d", (void *)sc, info->width, info->height);
+	VK_DEBUG(vk, "IMPORT %p %dx%d %s (%ld)", (void *)sc, //
+	         info->width, info->height,                  //
+	         vk_format_string(info->format), info->format);
 
 	// Use the image helper to get the images.
 	ret = vk_ic_from_natives(vk, info, native_images, images_count, &sc->vkic);