From e63a38832b7aba644f7dde4c1da7d9e217cfcf3e Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Wed, 14 Sep 2016 18:44:41 +0200 Subject: st/nine: Print interface id in NineUnknown_QueryInterface To ease debugging print interface id. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/iunknown.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/nine') diff --git a/src/gallium/state_trackers/nine/iunknown.c b/src/gallium/state_trackers/nine/iunknown.c index 58ed9dc73a1..6d501d8681b 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; -- cgit v1.2.3