projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfc213a
)
kvm: Print something before calling abort() if KVM_RUN fails
author
Michael Ellerman
<michael@ellerman.id.au>
Fri, 16 Dec 2011 00:20:20 +0000
(11:20 +1100)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Fri, 16 Dec 2011 10:45:17 +0000
(10:45 +0000)
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>
kvm-all.c
patch
|
blob
|
history
diff --git
a/kvm-all.c
b/kvm-all.c
index 4c466d6aba4cacfe927b5a442e55cc111bdb106e..ac048bce509d9ca3851edfc1fafa4e324d72a936 100644
(file)
--- a/
kvm-all.c
+++ b/
kvm-all.c
@@
-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();
}