diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-01-25 22:46:47 +1100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:22 -0600 |
commit | dcac49c008f0263f95d382b714c815aeacc83e34 (patch) | |
tree | aeb57a8008d6404babe93a240ad6ba6346f97026 /block.c | |
parent | cf10e609406b51810ab11a06cc4ec2d19007b6a8 (diff) | |
download | hqemu-dcac49c008f0263f95d382b714c815aeacc83e34.zip hqemu-dcac49c008f0263f95d382b714c815aeacc83e34.tar.gz |
pseries: Clean up error handling in spapr_validate_node_memory()
Use error_setg() and return an error, rather than using an explicit exit().
Also improve messages, and be more explicit about which constraint failed.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions