From 9abb710afb8e369eeb3104156c731bd3564abfcd Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Mon, 4 Dec 2017 20:11:20 +1100 Subject: vo_gpu: d3d11_helpers: use better formatting for PCI IDs The old format was definitely misleading, since it used an 0x prefix and formatted the device IDs with %d. --- video/out/gpu/d3d11_helpers.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/video/out/gpu/d3d11_helpers.c b/video/out/gpu/d3d11_helpers.c index ec0c6514da..b96b03a093 100644 --- a/video/out/gpu/d3d11_helpers.c +++ b/video/out/gpu/d3d11_helpers.c @@ -181,11 +181,13 @@ bool mp_d3d11_create_present_device(struct mp_log *log, (((unsigned)selected_level) >> 8) & 0xf); char *dev_name = mp_to_utf8(NULL, desc.Description); - mp_verbose(log, "Device: %s\n" - "VendorId: 0x%04d\n" - "DeviceId: 0x%04d\n" + mp_verbose(log, "Device Name: %s\n" + "Device ID: %04x:%04x (rev %02x)\n" + "Subsystem ID: %04x:%04x\n" "LUID: %08lx%08lx\n", - dev_name, desc.VendorId, desc.DeviceId, + dev_name, + desc.VendorId, desc.DeviceId, desc.Revision, + LOWORD(desc.SubSysId), HIWORD(desc.SubSysId), desc.AdapterLuid.HighPart, desc.AdapterLuid.LowPart); talloc_free(dev_name); -- cgit v1.2.3