* [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup
@ 2016-02-01 19:37 Andrew Jones
2016-02-04 12:14 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Jones @ 2016-02-01 19:37 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup
2016-02-01 19:37 [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup Andrew Jones
@ 2016-02-04 12:14 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2016-02-04 12:14 UTC (permalink / raw)
To: Andrew Jones, qemu-devel
On 01/02/2016 20:37, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
> 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;
> }
>
Applied, thanks!
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-04 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-01 19:37 [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup Andrew Jones
2016-02-04 12:14 ` Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.