diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-04-17 21:06:31 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-04-17 21:21:49 +0200 |
commit | eaf27fab2185290cbfa586af959b12e82cdde1f4 (patch) | |
tree | 875b26961f6b7d17409d1cdcec6a9b2f52400355 /hw/pci | |
parent | 036a26046f9e46021aad21b41011584cf57a3f8f (diff) |
pci: Report fatal errors with error_report(), not error_printf()
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20190417190641.26814-6-armbru@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r-- | hw/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 6d13ef877b..1808b242dd 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; |