[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() i
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() if KVM_RUN fails |
Date: |
Mon, 19 Dec 2011 11:12:25 +0000 |
From: Michael Ellerman <address@hidden>
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 <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
kvm-all.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index 4c466d6..ac048bc 100644
--- 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();
}
--
1.7.7.3
- [Qemu-devel] [PULL 00/17] Trivial patches for 7 to 19 December 2011, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 02/17] Makefile.target: Remove unnecessary dependency rules, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 03/17] stellaris: Calculate system clock period on reset, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 06/17] Also create piix3 property when Xen is enabled, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() if KVM_RUN fails,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 07/17] configure: Fix compiler warnings in config.log (always return a value from main), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 05/17] slirp: Fix typo in net_slirp_hostfwd_remove, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 01/17] ide: drop argument to dma_buf_commit, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 09/17] configure: Fix compiler warning in config.log (integer from pointer), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 08/17] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 12/17] configure: Fix compiler warning in config.log (macro redefined), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 16/17] configure: Fix compiler warnings in config.log (statement without effect), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 14/17] configure: Fix compiler warning in config.log (undefined NULL), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 15/17] configure: Fix compiler warning in config.log (value was never used), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 13/17] configure: Fix compiler warnings in config.log (uninitialized variable), Stefan Hajnoczi, 2011/12/19