diff options
author | Kenzo Iwami <k-iwami@cj.jp.nec.com> | 2006-09-23 06:53:08 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-26 02:08:08 +0200 |
commit | 65509645ae05886eccc81b8a453afea07f0eabb6 (patch) | |
tree | d023f27b6f85d6d9203ba303bb1256c0ac8c03c0 /drivers/net | |
parent | [PATCH] bonding: Convert delay value from s16 to int (diff) | |
download | linux-65509645ae05886eccc81b8a453afea07f0eabb6.tar.xz linux-65509645ae05886eccc81b8a453afea07f0eabb6.zip |
[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 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); seq_printf(seq, "MII Status: %s\n", (slave->link == BOND_LINK_UP) ? "up" : "down"); - seq_printf(seq, "Link Failure Count: %d\n", + seq_printf(seq, "Link Failure Count: %u\n", slave->link_failure_count); seq_printf(seq, |