diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2012-12-05 16:53:43 +1000 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2012-12-05 09:20:36 +0100 |
commit | 859cc10d23e619153670fc58683373fa24d25b68 (patch) | |
tree | ff17de000f31ca2efae2fd0b6153f6131e01bc35 /hw/xilinx_uartlite.c | |
parent | d4d230da08918183929c7d6cb54824b391536904 (diff) | |
download | qemu-859cc10d23e619153670fc58683373fa24d25b68.zip qemu-859cc10d23e619153670fc58683373fa24d25b68.tar.gz qemu-859cc10d23e619153670fc58683373fa24d25b68.tar.bz2 |
xilinx_uartlite: suppress "cannot receive message"
This message is not an error condition, its just informing the user that
the device is corking the uart traffic to not drop characters.
Reported-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/xilinx_uartlite.c')
-rw-r--r-- | hw/xilinx_uartlite.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c index d20fc41..f890f23 100644 --- a/hw/xilinx_uartlite.c +++ b/hw/xilinx_uartlite.c @@ -182,12 +182,8 @@ static void uart_rx(void *opaque, const uint8_t *buf, int size) static int uart_can_rx(void *opaque) { struct xlx_uartlite *s = opaque; - int r; - r = s->rx_fifo_len < sizeof(s->rx_fifo); - if (!r) - printf("cannot receive!\n"); - return r; + return s->rx_fifo_len < sizeof(s->rx_fifo); } static void uart_event(void *opaque, int event) |