Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65509645 authored by Kenzo Iwami's avatar Kenzo Iwami Committed by Jeff Garzik
Browse files

[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: default avatarKenzo Iwami <k-iwami@cj.jp.nec.com>
Acked-by: default avatarJay Vosburgh <fubar@us.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 8bb5f96b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,