summaryrefslogtreecommitdiffstats
path: root/hw/pci
diff options
context:
space:
mode:
authorMarcel Apfelbaum2014-06-23 16:32:47 +0200
committerMichael S. Tsirkin2014-06-23 16:48:42 +0200
commite4bcd27c86d20d6f1bc06a34e6612c18534a4968 (patch)
treed26479bcbc1c8c0b761da98edc306641bb331e19 /hw/pci
parentq35: Use PC_Q35_COMPAT_1_4 on pc-q35-1.4 compat_props (diff)
downloadqemu-e4bcd27c86d20d6f1bc06a34e6612c18534a4968.tar.gz
qemu-e4bcd27c86d20d6f1bc06a34e6612c18534a4968.tar.xz
qemu-e4bcd27c86d20d6f1bc06a34e6612c18534a4968.zip
hw/pcie: correct debug message
Trivial issue, discovered while debugging. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r--hw/pci/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 02cde6f96c..ae92f00f4a 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -224,7 +224,7 @@ static void pcie_cap_slot_hotplug_common(PCIDevice *hotplug_dev,
*exp_cap = hotplug_dev->config + hotplug_dev->exp.exp_cap;
uint16_t sltsta = pci_get_word(*exp_cap + PCI_EXP_SLTSTA);
- PCIE_DEV_PRINTF(PCI_DEVICE(dev), "hotplug state: %d\n", state);
+ PCIE_DEV_PRINTF(PCI_DEVICE(dev), "hotplug state: 0x%x\n", sltsta);
if (sltsta & PCI_EXP_SLTSTA_EIS) {
/* the slot is electromechanically locked.
* This error is propagated up to qdev and then to HMP/QMP.