From 26c45a0c701308b016f464d09acc5cbfaf15e758 Mon Sep 17 00:00:00 2001 From: Jidong Xia Date: Mon, 11 Nov 2019 17:12:21 +0800 Subject: [PATCH] hv: modify printf "not support the vuart index parameter" in vuart_register_io_handler call vuart_register_io_handler function, when the parameter vuart_idx is greater than or equal to 2, print the vuart index value which will not register the vuart. Tracked-On: #4072 Signed-off-by: Jidong Xia --- hypervisor/dm/vuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/dm/vuart.c b/hypervisor/dm/vuart.c index 0500c0fe6..d6d57867a 100644 --- a/hypervisor/dm/vuart.c +++ b/hypervisor/dm/vuart.c @@ -534,7 +534,7 @@ static bool vuart_register_io_handler(struct acrn_vm *vm, uint16_t port_base, ui pio_idx = UART_PIO_IDX1; break; default: - printf("Not support vuart index %d, will not register \n"); + printf("Not support vuart index %d, will not register \n", vuart_idx); ret = false; } if (ret != 0U) {