diff options
author | Andrew Jones <drjones@redhat.com> | 2016-02-01 20:37:44 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-09 15:45:26 +0100 |
commit | 844a3d34d684491b9a483a2d19f801f5b03f5569 (patch) | |
tree | 93fa9055c9f4c691d9069dec9dd3b81b91680092 /kvm-all.c | |
parent | 667ad26ff8b0e4cabba67322b5e4c35c0b6c4eb8 (diff) | |
download | qemu-844a3d34d684491b9a483a2d19f801f5b03f5569.tar.gz qemu-844a3d34d684491b9a483a2d19f801f5b03f5569.tar.bz2 qemu-844a3d34d684491b9a483a2d19f801f5b03f5569.zip |
kvm-all: trace: strerror fixup
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1454355464-14999-1-git-send-email-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |