All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Andrew Jones <drjones@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup
Date: Thu, 4 Feb 2016 13:14:02 +0100	[thread overview]
Message-ID: <56B3408A.7010401@redhat.com> (raw)
In-Reply-To: <1454355464-14999-1-git-send-email-drjones@redhat.com>



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, &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, &reg);
>      if (r) {
> -        trace_kvm_failed_reg_get(id, strerror(r));
> +        trace_kvm_failed_reg_get(id, strerror(-r));
>      }
>      return r;
>  }
> 

Applied, thanks!

Paolo

      reply	other threads:[~2016-02-04 12:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 19:37 [Qemu-devel] [PATCH] kvm-all: trace: strerror fixup Andrew Jones
2016-02-04 12:14 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56B3408A.7010401@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=drjones@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.