From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbLXL-0005PT-QB for qemu-devel@nongnu.org; Thu, 15 Dec 2011 19:20:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbLXK-0006FU-OG for qemu-devel@nongnu.org; Thu, 15 Dec 2011 19:20:31 -0500 Received: from ozlabs.org ([203.10.76.45]:50982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbLXK-0006FC-Ed for qemu-devel@nongnu.org; Thu, 15 Dec 2011 19:20:30 -0500 From: Michael Ellerman Date: Fri, 16 Dec 2011 11:20:20 +1100 Message-Id: <1323994820-22750-1-git-send-email-michael@ellerman.id.au> Subject: [Qemu-devel] [PATCH] kvm: Print something before calling abort() if KVM_RUN fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Ellerman 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 --- 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