Received: from eggs.gnu.org ([2001:4830:134:3::10]:58439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQKIN-0003cj-Lj for qemu-devel@nongnu.org; Mon, 01 Feb 2016 14:37:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQKIJ-0006gi-Lq for qemu-devel@nongnu.org; Mon, 01 Feb 2016 14:37:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQKIJ-0006ge-Gs for qemu-devel@nongnu.org; Mon, 01 Feb 2016 14:37:51 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 69E81C09FA87 for ; Mon, 1 Feb 2016 19:37:50 +0000 (UTC) From: Andrew Jones Date: Mon, 1 Feb 2016 20:37:44 +0100 Message-Id: <1454355464-14999-1-git-send-email-drjones@redhat.com> Subject: [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Signed-off-by: Andrew Jones --- kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 9148889921197..330f509a0da84 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -2362,7 +2362,7 @@ int kvm_set_one_reg(CPUState *cs, uint64_t id, void *source) reg.addr = (uintptr_t) source; r = kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, ®); if (r) { - trace_kvm_failed_reg_set(id, strerror(r)); + trace_kvm_failed_reg_set(id, strerror(-r)); } return r; } @@ -2376,7 +2376,7 @@ int kvm_get_one_reg(CPUState *cs, uint64_t id, void *target) reg.addr = (uintptr_t) target; r = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, ®); if (r) { - trace_kvm_failed_reg_get(id, strerror(r)); + trace_kvm_failed_reg_get(id, strerror(-r)); } return r; } -- 2.4.3