usb: gadget: rndis: use %u instead of %d to print u32 values
authorRay Hung <tw.rayhung@gmail.com>
Thu, 4 Aug 2022 11:08:36 +0000 (19:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Aug 2022 19:19:20 +0000 (21:19 +0200)
The driver uses the %d format to print u32 values. The correct
format is %u. Fix it.

Signed-off-by: Ray Hung <tw.rayhung@gmail.com>
Link: https://lore.kernel.org/r/20220804110836.138614-1-tw.rayhung@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/rndis.c

index 713efd9aefde8d17e1e32d1200d2345370b6c9bb..10ba339bcea470c2b79b6cf19b36020556b5945c 100644 (file)
@@ -1105,7 +1105,7 @@ static int rndis_proc_show(struct seq_file *m, void *v)
                         "used      : %s\n"
                         "state     : %s\n"
                         "medium    : 0x%08X\n"
-                        "speed     : %d\n"
+                        "speed     : %u\n"
                         "cable     : %s\n"
                         "vendor ID : 0x%08X\n"
                         "vendor    : %s\n",