hw/mips/fuloong2e: Convert pointless error message to an assert()
Displaying "vt82c686b_init error" doesn't give any hint about why this call failed. As this message targets developers and not users, replace the pointless error message by a call to assert() which will provide more useful information. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Huacai Chen <chenhc@lemote.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200901104043.91383-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
9435a8b3dd
commit
5e4b6bb1e8
|
@ -240,10 +240,7 @@ static void vt82c686b_southbridge_init(PCIBus *pci_bus, int slot, qemu_irq intc,
|
||||||
PCIDevice *dev;
|
PCIDevice *dev;
|
||||||
|
|
||||||
isa_bus = vt82c686b_isa_init(pci_bus, PCI_DEVFN(slot, 0));
|
isa_bus = vt82c686b_isa_init(pci_bus, PCI_DEVFN(slot, 0));
|
||||||
if (!isa_bus) {
|
assert(isa_bus);
|
||||||
fprintf(stderr, "vt82c686b_init error\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
*p_isa_bus = isa_bus;
|
*p_isa_bus = isa_bus;
|
||||||
/* Interrupt controller */
|
/* Interrupt controller */
|
||||||
/* The 8259 -> IP5 */
|
/* The 8259 -> IP5 */
|
||||||
|
|
Loading…
Reference in a new issue