From: Markus Armbruster Date: Wed, 17 Apr 2019 19:06:31 +0000 (+0200) Subject: pci: Report fatal errors with error_report(), not error_printf() X-Git-Tag: v4.1.0-rc0~150^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf27fab2185290cbfa586af959b12e82cdde1f4;p=thirdparty%2Fqemu.git pci: Report fatal errors with error_report(), not error_printf() Cc: "Michael S. Tsirkin" Cc: Marcel Apfelbaum Signed-off-by: Markus Armbruster Reviewed-by: Marcel Apfelbaum Message-Id: <20190417190641.26814-6-armbru@redhat.com> --- diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 6d13ef877b4..1808b242dd4 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -951,7 +951,7 @@ static uint16_t pci_req_id_cache_extract(PCIReqIDCache *cache) result = PCI_BUILD_BDF(bus_n, 0); break; default: - error_printf("Invalid PCI requester ID cache type: %d\n", + error_report("Invalid PCI requester ID cache type: %d", cache->type); exit(1); break;