From 2998796c2cb28574b13b99cdcc98803a4dd8b31f Mon Sep 17 00:00:00 2001 From: joevt Date: Sun, 15 Jan 2023 02:07:25 -0800 Subject: [PATCH] pci: Fix log message for PCI rom exceptions. It should log device name, not just "PCIDevice". --- devices/common/pci/pcidevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/common/pci/pcidevice.cpp b/devices/common/pci/pcidevice.cpp index f261e3b..877c425 100644 --- a/devices/common/pci/pcidevice.cpp +++ b/devices/common/pci/pcidevice.cpp @@ -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; }