Commit 7c305137 authored by Alex Bennée's avatar Alex Bennée Committed by Paolo Bonzini
Browse files

lib/pci: fix BAR format strings



Using %lx as a format string is not portable across 32/64 bit builds.
Use explicit PRIx64 format strings.
Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 529046c3
......@@ -83,7 +83,7 @@ bool pci_setup_msi(struct pci_dev *dev, uint64_t msi_addr, uint32_t msi_data)
pci_config_writel(addr, offset + PCI_MSI_DATA_32, msi_data);
printf("MSI: dev 0x%x init 32bit address: ", addr);
}
printf("addr=0x%lx, data=0x%x\n", msi_addr, msi_data);
printf("addr=0x%" PRIx64 ", data=0x%x\n", msi_addr, msi_data);
pci_msi_set_enable(dev, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment