提交 5c936a83 编写于 作者: M Marc-André Lureau 提交者: Paolo Bonzini

ringbuf: fix chr_write return value

It should return the number of written bytes.
Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-4-marcandre.lureau@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 ba60e727
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册