From patchwork Mon Feb 8 17:03:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 61419 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1557997lbl; Mon, 8 Feb 2016 09:10:38 -0800 (PST) X-Received: by 10.55.212.156 with SMTP id s28mr29464665qks.55.1454951437731; Mon, 08 Feb 2016 09:10:37 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o206si31249072qho.27.2016.02.08.09.10.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 08 Feb 2016 09:10:37 -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; dkim=fail header.i=@gmail.com Received: from localhost ([::1]:46904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSpKf-0006gF-1y for patch@linaro.org; Mon, 08 Feb 2016 12:10:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSpDx-0003OI-QH for qemu-devel@nongnu.org; Mon, 08 Feb 2016 12:03:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSpDx-0006nA-0G for qemu-devel@nongnu.org; Mon, 08 Feb 2016 12:03:41 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:35376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSpDw-0006mi-K0 for qemu-devel@nongnu.org; Mon, 08 Feb 2016 12:03:40 -0500 Received: by mail-wm0-x234.google.com with SMTP id c200so25247013wme.0 for ; Mon, 08 Feb 2016 09:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=I5IVo1qLCfX5a6YIA29KxgNKEPY5F1IiFPsoVmxbzfg=; b=ngrXMX6ZWQ5UmkMXfQ2Q9yo3HEhwA/7fOHl973q/TdJtZrRnHIELT7ZUiFCJWtszjW lyTabSgXFnnfJu5mPU65QFyAU+EkunCQfyQTzo+LsWaOpbgCfq7dxON42yGRIikVtF3q TTX3aWflT1ZPFtJPQr8I2bQ7cXYdcbTmLdVIZRmxFfBb23V5CCyvDd8+M7jvYH57rhw5 kmqczprYFbhCuVdijTv7bpMv/jNLrBu1cYGXW2CQ4wQHlwTMji1evxcqbwK9B/0IVv2l rsl0fys5IWzwB4JqHw3KjOcsFJqJ2Y3giYNptljgUxyDbOCFX8I6POsQstoAOZl+doTI Q90g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=I5IVo1qLCfX5a6YIA29KxgNKEPY5F1IiFPsoVmxbzfg=; b=L+vi9Xhn38OqgEquUw5BBWuxTvE7GsxkuB49hapDAQJbEAg+ocIotP9yO/1Y8hmBjf EkAQ4ueOuDHROrnEzlbVztpwDz0UKhhoImuazkIAkN+JJ8msQ/5QJmk5glief1dREaKx VTqJ9Qv/gPAki9DkF/B+jCCfQ75wrh1s1HmZ7uEQqdueOa028GH6RNvbis1JW4mLch1L gzNDi2c8m2w/F08hZOjtBc/8UuNQs6CkQbMCks2UsQdwEGvgc3t5QL/LaogO4Mz/qzBj KQRwhQAc0GlIGLD8eiuA91i/uyk+lfub0nrjBIR53n40SRtEFg0t/xwwb5ZCuqlBP9aD 6FVw== X-Gm-Message-State: AG10YOS31lv7qShnqADPmLBl5/9qPc1cMV5wqUjJszKWlbLktAmjugsF5lamSxI+csLUNA== X-Received: by 10.194.111.232 with SMTP id il8mr33725689wjb.150.1454951019991; Mon, 08 Feb 2016 09:03:39 -0800 (PST) Received: from 640k.lan (94-39-141-130.adsl-ull.clienti.tiscali.it. [94.39.141.130]) by smtp.gmail.com with ESMTPSA id b1sm30651442wjy.0.2016.02.08.09.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 09:03:39 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 8 Feb 2016 18:03:05 +0100 Message-Id: <1454950999-64128-15-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1454950999-64128-1-git-send-email-pbonzini@redhat.com> References: <1454950999-64128-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 Cc: Andrew Jones Subject: [Qemu-devel] [PULL 14/28] 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 From: Andrew Jones Signed-off-by: Andrew Jones Message-Id: <1454355464-14999-1-git-send-email-drjones@redhat.com> Signed-off-by: Paolo Bonzini --- kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.8.3.1 diff --git a/kvm-all.c b/kvm-all.c index 9cc9ba6..a65e73f 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -2361,7 +2361,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; } @@ -2375,7 +2375,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; }