[vlc-commits] dxva2: log the adapter Ids as hexademical

Steve Lhomme git at videolan.org
Wed Oct 17 12:02:17 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 19 15:58:36 2018 +0200| [462ffd25dafb144c5bfe4763bb889bf85685b34e] | committer: Steve Lhomme

dxva2: log the adapter Ids as hexademical

That's the common way to refer to them.

(cherry picked from commit a8ac11fe302dd39a2082bb63b3cef9dd2166f2e5)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=462ffd25dafb144c5bfe4763bb889bf85685b34e
---

 modules/codec/avcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index ab4cdd9b85..5bdc786796 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -376,7 +376,7 @@ static char *DxDescribe(vlc_va_sys_t *sys)
     }
 
     char *description;
-    if (asprintf(&description, "DXVA2 (%.*s, vendor %s(%lu), device %lu, revision %lu)",
+    if (asprintf(&description, "DXVA2 (%.*s, vendor %s(%lx), device %lx, revision %lx)",
                  (int)sizeof(d3dai.Description), d3dai.Description,
                  DxgiVendorStr(d3dai.VendorId), d3dai.VendorId, d3dai.DeviceId, d3dai.Revision) < 0)
         return NULL;



More information about the vlc-commits mailing list