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
1 changed files with 1 additions and 1 deletions

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;
}