staging: unisys: visorbus: modify format string to match argument
authorDavid Binder <david.binder@unisys.com>
Sat, 11 Jun 2016 01:48:03 +0000 (21:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 18:44:24 +0000 (20:44 +0200)
Modifies the format string of snprintf to expect an unsigned int
instead of a signed one, per the supplied argument.

Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <Timothy.Sell@unisys.com>
Acked-By: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index 08d560cafea85021f2451b81ce25f3701435fa0a..756df4140331a9a0742db0b972b3fd5b9dfda4d6 100644 (file)
@@ -433,7 +433,7 @@ static ssize_t client_bus_info_show(struct device *dev,
                if (vdev->name)
                        partition_name = vdev->name;
                shift = snprintf(pos, remain,
-                                "Client device / client driver info for %s eartition (vbus #%d):\n",
+                                "Client device / client driver info for %s eartition (vbus #%u):\n",
                                 partition_name, vdev->chipset_dev_no);
                pos += shift;
                remain -= shift;