[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 07/11] pseries: Cleanup error handling in spapr_kvm_ty
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 07/11] pseries: Cleanup error handling in spapr_kvm_type() |
Date: |
Fri, 11 Dec 2015 11:11:21 +1100 |
Use error_setg() and &error_fatal instead of an explicit exit().
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index fd16db4..546d2f5 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2035,8 +2035,8 @@ static int spapr_kvm_type(const char *vm_type)
return 2;
}
- error_report("Unknown kvm-type specified '%s'", vm_type);
- exit(1);
+ error_setg(&error_fatal, "Unknown kvm-type specified '%s'", vm_type);
+ return 0;
}
/*
--
2.5.0
- Re: [Qemu-ppc] [PATCH 01/11] ppc: Cleanup error handling in ppc_set_compat(), (continued)