]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: bonding: Fix format string mismatch in bond_sysfs.c
authorMasanari Iida <standby24x7@gmail.com>
Mon, 28 Apr 2014 15:41:21 +0000 (00:41 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Apr 2014 18:48:16 +0000 (14:48 -0400)
Fix format string mismatch in bonding_show_min_links().

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c

index 0e8b268da0a08f58c4443c6c36aa62bb9ef0f071..5f6babcfc26e6aa56881ef2dc24b1ed51e3d7539 100644 (file)
@@ -534,7 +534,7 @@ static ssize_t bonding_show_min_links(struct device *d,
 {
        struct bonding *bond = to_bond(d);
 
-       return sprintf(buf, "%d\n", bond->params.min_links);
+       return sprintf(buf, "%u\n", bond->params.min_links);
 }
 
 static ssize_t bonding_store_min_links(struct device *d,