[Mesa-dev] [PATCH 52/75] st/nine: Print interface id in NineUnknown_QueryInterface

Axel Davy axel.davy at ens.fr
Wed Oct 5 20:09:25 UTC 2016


From: Patrick Rudolph <siro at das-labor.org>

To ease debugging print interface id.

Signed-off-by: Patrick Rudolph <siro at das-labor.org>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/iunknown.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/iunknown.c b/src/gallium/state_trackers/nine/iunknown.c
index 58ed9dc..6d501d8 100644
--- a/src/gallium/state_trackers/nine/iunknown.c
+++ b/src/gallium/state_trackers/nine/iunknown.c
@@ -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;
 
-- 
2.10.0



More information about the mesa-dev mailing list