projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba60e72
)
ringbuf: fix chr_write return value
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Sat, 22 Oct 2016 09:52:43 +0000
(12:52 +0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 24 Oct 2016 13:27:20 +0000
(15:27 +0200)
It should return the number of written bytes.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <
20161022095318
.17775-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index 9165051f2aaef542384b2505e592b7000cab93e5..650943d27426d9642742cee93a5bf1f9666a1aaa 100644
(file)
--- a/
qemu-char.c
+++ b/
qemu-char.c
@@
-3328,7
+3328,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)