mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Sysman: Fix format specifier mismatch warning in PCI API
Related-To: LOCI-2445 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dbf9198186
commit
fdc71ea26e
@@ -130,9 +130,12 @@ void PciImp::pciGetStaticFields() {
|
||||
pciProperties.address.device = 0;
|
||||
pciProperties.address.function = 0;
|
||||
} else {
|
||||
sscanf(bdf.c_str(), "%04x:%02x:%02x.%d",
|
||||
&pciProperties.address.domain, &pciProperties.address.bus,
|
||||
&pciProperties.address.device, &pciProperties.address.function);
|
||||
int domain = -1, bus = -1, device = -1, function = -1;
|
||||
sscanf(bdf.c_str(), "%04x:%02x:%02x.%d", &domain, &bus, &device, &function);
|
||||
pciProperties.address.domain = static_cast<uint32_t>(domain);
|
||||
pciProperties.address.bus = static_cast<uint32_t>(bus);
|
||||
pciProperties.address.device = static_cast<uint32_t>(device);
|
||||
pciProperties.address.function = static_cast<uint32_t>(function);
|
||||
}
|
||||
|
||||
int32_t maxLinkWidth = -1;
|
||||
|
||||
Reference in New Issue
Block a user