Skip to contentSkip to conversation

hw/hyperv/vmbus.c : Don't use '#' flag of printf format

PATCH In review jokenzhang 2 participants 2 messages Oct 29, 2020

lore
Share & tools
lore

jokenzhang

author
#0 lore raw

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

---
 hw/hyperv/vmbus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/hyperv/vmbus.c +2 -2
index 896e981f85..bd64a0754c 100644
@@ -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