From: Peter Crosthwaite Date: Wed, 5 Dec 2012 06:53:43 +0000 (+1000) Subject: xilinx_uartlite: suppress "cannot receive message" X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~1537^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=859cc10d23e619153670fc58683373fa24d25b68;p=qemu-upstream-4.4-testing.git 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 Signed-off-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c index d20fc4124..f890f2363 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)