This is more appropriate and allows central handling. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- hw/kvm/pci-assign.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/hw/kvm/pci-assign.c b/hw/kvm/pci-assign.c index cfd859e..29a4671 100644 --- a/hw/kvm/pci-assign.c +++ b/hw/kvm/pci-assign.c @@ -358,10 +358,7 @@ again: goto again; } - fprintf(stderr, "%s: pread failed, ret = %zd errno = %d\n", - __func__, ret, errno); - - exit(1); + hw_error("pci read failed, ret = %zd errno = %d\n", ret, errno); } return val; @@ -385,10 +382,7 @@ again: goto again; } - fprintf(stderr, "%s: pwrite failed, ret = %zd errno = %d\n", - __func__, ret, errno); - - exit(1); + hw_error("pci write failed, ret = %zd errno = %d\n", ret, errno); } } -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html