Browse Source

libobs-d3d11: Left-pad device PCI ID to 4 characters with zeroes

Ryan Foster 2 years ago
parent
commit
9967322834
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs-d3d11/d3d11-subsystem.cpp

+ 1 - 1
libobs-d3d11/d3d11-subsystem.cpp

@@ -1459,7 +1459,7 @@ static inline void LogD3DAdapters()
 		     desc.DedicatedVideoMemory);
 		blog(LOG_INFO, "\t  Shared VRAM:    %" PRIu64,
 		     desc.SharedSystemMemory);
-		blog(LOG_INFO, "\t  PCI ID:         %x:%x", desc.VendorId,
+		blog(LOG_INFO, "\t  PCI ID:         %x:%.4x", desc.VendorId,
 		     desc.DeviceId);
 
 		if (auto hags_support = GetAdapterHagsStatus(&desc)) {