diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2011-12-16 11:20:20 +1100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-12-16 10:45:17 +0000 |
commit | 7b011fbc050d442a20ed5d2a29724570c1557661 (patch) | |
tree | 6a3084c180846fb09958b29face89abd5f2496fc | |
parent | bfc213af97c5f7768ad7549bc95134cb4e218a76 (diff) |
kvm: Print something before calling abort() if KVM_RUN fails
It's a little unfriendly to call abort() without printing any sort of
error message. So turn the DPRINTK() into an fprintf(stderr, ...).
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r-- | kvm-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -977,7 +977,8 @@ int kvm_cpu_exec(CPUState *env) ret = EXCP_INTERRUPT; break; } - DPRINTF("kvm run failed %s\n", strerror(-run_ret)); + fprintf(stderr, "error: kvm run failed %s\n", + strerror(-run_ret)); abort(); } |