pseries: Clean up error reporting in ppc_spapr_init()
commitd54e4d7659ebecd0e1fa7ffc3e954197e09f8a1f
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 20 Jan 2016 01:58:55 +0000 (20 12:58 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jan 2016 12:37:37 +0000 (30 23:37 +1100)
tree516d067ee8cf7bc5eadc4ce89e7c086628c8d9d8
parent1e49182d05016756be3c7c43a4934f5104717512
pseries: Clean up error reporting in ppc_spapr_init()

This function includes a number of explicit fprintf()s for errors.
Change these to use error_report() instead.

Also replace the single exit(EXIT_FAILURE) with an explicit exit(1), since
the latter is the more usual idiom in qemu by a large margin.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hw/ppc/spapr.c