[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;
-            DPRINTF("kvm run failed %s\n", strerror(-run_ret));
+            fprintf(stderr, "error: kvm run failed %s\n",
+                    strerror(-run_ret));

reply via email to

[Prev in Thread] Current Thread [Next in Thread]