From patchwork Mon Feb 1 19:37:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 60963 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp262900lbb; Mon, 1 Feb 2016 11:38:19 -0800 (PST) X-Received: by 10.140.133.146 with SMTP id 140mr31072733qhf.99.1454355499839; Mon, 01 Feb 2016 11:38:19 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o72si31128096qkl.47.2016.02.01.11.38.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 01 Feb 2016 11:38:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:53889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQKIl-0003vr-DI for patch@linaro.org; Mon, 01 Feb 2016 14:38:19 -0500 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) Received: from hawk.localdomain.com (dhcp-1-158.brq.redhat.com [10.34.1.158]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u11JbmVl031623; Mon, 1 Feb 2016 14:37:49 -0500 From: Andrew Jones To: qemu-devel@nongnu.org Date: Mon, 1 Feb 2016 20:37:44 +0100 Message-Id: <1454355464-14999-1-git-send-email-drjones@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: pbonzini@redhat.com Subject: [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Andrew Jones --- kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.4.3 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; }