qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, berrange@redhat.com,
	imbrenda@linux.vnet.ibm.com,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [PATCH 8/9] ringbuf: fix chr_write return value
Date: Thu, 13 Oct 2016 15:14:48 +0400	[thread overview]
Message-ID: <20161013111449.29387-9-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <20161013111449.29387-1-marcandre.lureau@redhat.com>

It should return the number of written bytes.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 qemu-char.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-char.c b/qemu-char.c
index 775015b..863e449 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -3389,7 +3389,7 @@ static int ringbuf_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
         }
     }
 
-    return 0;
+    return len;
 }
 
 static int ringbuf_chr_read(CharDriverState *chr, uint8_t *buf, int len)
-- 
2.10.0

  parent reply	other threads:[~2016-10-13 11:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 11:14 [Qemu-devel] [PATCH 0/9] Fix mux regression (commit 949055a2) Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 1/9] Revert "char: use a fixed idx for child muxed chr" Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 2/9] char: return a tag when adding the fe handlers Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 3/9] char: add qemu_chr_remove_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 4/9] char: keep track of qemu_chr_add_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 5/9] char: warn on unused qemu_chr_add_handlers() result Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 6/9] qdev: remove call to qemu_chr_add_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 7/9] char: handle qemu_chr_add_handlers() error Marc-André Lureau
2016-10-13 11:14 ` Marc-André Lureau [this message]
2016-10-13 11:14 ` [Qemu-devel] [PATCH 9/9] tests: start chardev unit tests Marc-André Lureau
2016-10-13 11:36 ` [Qemu-devel] [PATCH 0/9] Fix mux regression (commit 949055a2) Paolo Bonzini
2016-10-13 11:50   ` Marc-André Lureau
2016-10-13 11:58     ` Paolo Bonzini
2016-10-13 13:27 ` Peter Maydell

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=20161013111449.29387-9-marcandre.lureau@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=berrange@redhat.com \
    --cc=imbrenda@linux.vnet.ibm.com \
    --cc=pbonzini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).