diff options
author | Kenzo Iwami <k-iwami@cj.jp.nec.com> | 2006-09-23 00:53:08 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-25 20:08:08 -0400 |
commit | 65509645ae05886eccc81b8a453afea07f0eabb6 (patch) | |
tree | d023f27b6f85d6d9203ba303bb1256c0ac8c03c0 /drivers/net | |
parent | 8bb5f96b0c1f430e6be56edd6c7032bcedd86ff0 (diff) |
[PATCH] bonding: Format fix in seq_printf call
Though link_failure_count is type unsigned int, this value is outputted to
/proc/net/bonding/bondX file using "%d" instead of "%u".
The attached patch fixes this problem.
Signed-off-by: Kenzo Iwami <k-iwami@cj.jp.nec.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 13b434220ff6..3d7693d1c512 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -2951,7 +2951,7 @@ static void bond_info_show_slave(struct seq_file *seq, const struct slave *slave | |||
2951 | seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); | 2951 | seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); |
2952 | seq_printf(seq, "MII Status: %s\n", | 2952 | seq_printf(seq, "MII Status: %s\n", |
2953 | (slave->link == BOND_LINK_UP) ? "up" : "down"); | 2953 | (slave->link == BOND_LINK_UP) ? "up" : "down"); |
2954 | seq_printf(seq, "Link Failure Count: %d\n", | 2954 | seq_printf(seq, "Link Failure Count: %u\n", |
2955 | slave->link_failure_count); | 2955 | slave->link_failure_count); |
2956 | 2956 | ||
2957 | seq_printf(seq, | 2957 | seq_printf(seq, |