diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-15 11:17:31 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-22 10:17:16 -0500 |
commit | 909cda12b57d8742d67470c5350ecc4012267cb2 (patch) | |
tree | 4722cec328a84a678ab595c2640782695cbac719 /hw/baum.c | |
parent | fa5efccb2a063f1dee46ed3ebd9192b318009f65 (diff) |
char: rename qemu_chr_can_read() -> qemu_chr_be_can_read()
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/baum.c')
-rw-r--r-- | hw/baum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -223,7 +223,7 @@ static void baum_accept_input(struct CharDriverState *chr) if (!baum->out_buf_used) return; - room = qemu_chr_can_read(chr); + room = qemu_chr_be_can_write(chr); if (!room) return; if (room > baum->out_buf_used) @@ -250,7 +250,7 @@ static void baum_write_packet(BaumDriverState *baum, const uint8_t *buf, int len while (len--) if ((*cur++ = *buf++) == ESC) *cur++ = ESC; - room = qemu_chr_can_read(baum->chr); + room = qemu_chr_be_can_write(baum->chr); len = cur - io_buf; if (len <= room) { /* Fits */ |