mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 23:13:29 +08:00
spapr_pci: use warn_report()
These two are definitely warnings. Let's use the appropriate API. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
7709dbf12c
commit
2b3db9dd34
@ -1696,9 +1696,9 @@ static void spapr_phb_realize(DeviceState *dev, Error **errp)
|
||||
/* DMA setup */
|
||||
if (((sphb->page_size_mask & qemu_getrampagesize()) == 0)
|
||||
&& kvm_enabled()) {
|
||||
error_report("System page size 0x%lx is not enabled in page_size_mask "
|
||||
"(0x%"PRIx64"). Performance may be slow",
|
||||
qemu_getrampagesize(), sphb->page_size_mask);
|
||||
warn_report("System page size 0x%lx is not enabled in page_size_mask "
|
||||
"(0x%"PRIx64"). Performance may be slow",
|
||||
qemu_getrampagesize(), sphb->page_size_mask);
|
||||
}
|
||||
|
||||
for (i = 0; i < windows_supported; ++i) {
|
||||
|
@ -50,7 +50,7 @@ static Property spapr_phb_vfio_properties[] = {
|
||||
static void spapr_phb_vfio_instance_init(Object *obj)
|
||||
{
|
||||
if (!qtest_enabled()) {
|
||||
error_report("spapr-pci-vfio-host-bridge is deprecated");
|
||||
warn_report("spapr-pci-vfio-host-bridge is deprecated");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user