st/nine: Print interface id in NineUnknown_QueryInterface
authorPatrick Rudolph <siro@das-labor.org>
Wed, 14 Sep 2016 16:44:41 +0000 (18:44 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
To ease debugging print interface id.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/iunknown.c

index 58ed9dc73a110b964300f9f6a2dd804c4c788e99..6d501d8681bd3c03872ccec8eb5be7a8b25ab050 100644 (file)
@@ -60,8 +60,10 @@ NineUnknown_QueryInterface( struct NineUnknown *This,
                             void **ppvObject )
 {
     unsigned i = 0;
+    char guid_str[64];
 
-    DBG("This=%p riid=%p ppvObject=%p\n", This, riid, ppvObject);
+    DBG("This=%p riid=%p id=%s ppvObject=%p\n",
+        This, riid, riid ? GUID_sprintf(guid_str, riid) : "", ppvObject);
 
     if (!ppvObject) return E_POINTER;