staging: unisys: Fix format string mismatch in virthba.c
authorMasanari Iida <standby24x7@gmail.com>
Mon, 14 Apr 2014 16:56:32 +0000 (01:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 22:25:39 +0000 (15:25 -0700)
Fix format string mismatch in info_proc_read() within virthba.c.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/virthba/virthba.c

index 817b11d..cc8a032 100644 (file)
@@ -1400,7 +1400,7 @@ info_proc_read(struct file *file, char __user *buf, size_t len, loff_t *offset)
                virthbainfo = VirtHbasOpen[i].virthbainfo;
                length += sprintf(vbuf + length, "CHANSOCK is not defined.\n");
 
-               length += sprintf(vbuf + length, "MaxBuffLen:%d\n", MaxBuffLen);
+               length += sprintf(vbuf + length, "MaxBuffLen:%u\n", MaxBuffLen);
 
                length += sprintf(vbuf + length, "\nvirthba result queue poll wait:%d usecs.\n",
                                  rsltq_wait_usecs);