hw/hyperv/vmbus.c : Don't use '#' flag of printf format
PATCH 1/1 hw/hyperv/vmbus.c : Don't use '#' flag of printf format
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead
Signed-off-by jokenzhang <[email protected]>
Signed-off-by Kai Deng <[email protected]>
Reported-by Euler Robot <[email protected]>
--- hw/hyperv/vmbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/hyperv/vmbus.c +2 -2
@@ -1656,7 +1656,7 @@ static uint16_t vmbus_recv_message(const struct hyperv_post_message_input *msg,if (vmbus_msg->message_type ==VMBUS_MSG_INVALID || vmbus_msg->message_type >=VMBUS_MSG_COUNT ) { -error_report ("vmbus: unknown message type %#x" , +error_report ("vmbus: unknown message type 0x%x" , vmbus_msg->message_type);return HV_STATUS_INVALID_HYPERCALL_INPUT ; }
@@ -2230,7 +2230,7 @@ static void process_message(VMBus *vmbus)handle_unload (vmbus, msgdata, msglen);break ;default : -error_report ("unknown message type %#x" , msg->message_type); +error_report ("unknown message type 0x%x" , msg->message_type);break ; }
Signature · 1 line
2.29.0-rc1
Quoted 9 lines · jokenzhang
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead
Signed-off-by jokenzhang <[email protected]>Signed-off-by Kai Deng <[email protected]>Reported-by Euler Robot <[email protected]>--- hw/hyperv/vmbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>