mirror of https://gitee.com/openkylin/qemu.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 <huanyu@xilinx.com> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
d4d230da08
commit
859cc10d23
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue