From: Edgar E. Iglesias Date: Tue, 18 Jun 2013 07:22:55 +0000 (+0200) Subject: cadence_uart: Handle backend tx errors X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~524^2~3^2~481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b52df46551d303ffc79ec39c38440bd8a62ee210;p=sdk%2Femulator%2Fqemu.git cadence_uart: Handle backend tx errors Signed-off-by: Edgar E. Iglesias --- diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c index c2a783430b..205e125de9 100644 --- a/hw/char/cadence_uart.c +++ b/hw/char/cadence_uart.c @@ -297,9 +297,7 @@ static void uart_write_tx_fifo(UartState *s, const uint8_t *buf, int size) return; } - while (size) { - size -= qemu_chr_fe_write(s->chr, buf, size); - } + qemu_chr_fe_write_all(s->chr, buf, size); } static void uart_receive(void *opaque, const uint8_t *buf, int size)