pci: Fix log message for PCI rom exceptions.

It should log device name, not just "PCIDevice".
This commit is contained in:
joevt 2023-01-15 02:07:25 -08:00 committed by dingusdev
parent 3978d0754d
commit 2998796c2c

View File

@ -191,7 +191,7 @@ int PCIDevice::attach_exp_rom_image(const std::string img_path)
this->exp_bar_cfg = ~(this->exp_rom_size - 1);
}
catch (const std::exception& exc) {
LOG_F(ERROR, "PCIDevice: %s", exc.what());
LOG_F(ERROR, "%s: %s", this->pci_name.c_str(), exc.what());
result = -1;
}