Drivers: hv: kvp: Use %u to print U32
authorDexuan Cui <decui@microsoft.com>
Thu, 18 Oct 2018 05:09:31 +0000 (05:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Nov 2018 20:58:27 +0000 (12:58 -0800)
I didn't find a real issue. Let's just make it consistent with the
next "case REG_U64:" where %llu is used.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_kvp.c

index a7513a8..2530e17 100644 (file)
@@ -430,7 +430,7 @@ kvp_send_key(struct work_struct *dummy)
                        val32 = in_msg->body.kvp_set.data.value_u32;
                        message->body.kvp_set.data.value_size =
                                sprintf(message->body.kvp_set.data.value,
-                                       "%d", val32) + 1;
+                                       "%u", val32) + 1;
                        break;
 
                case REG_U64: