DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH 3/7] bonding: Format fix in seq_printf call

From: Jay Vosburgh <hidden>
Date: 2006-09-01 22:09:37

From: Kenzo Iwami <redacted>

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 <redacted>
Acked-by: Jay Vosburgh <redacted>


--- netdev-2.6.git-upstream/drivers/net/bonding/bond_main.c	2006/08/19 10:39:34	1.2
+++ netdev-2.6.git-upstream/drivers/net/bonding/bond_main.c	2006/08/19 14:46:07	1.3
@@ -2951,7 +2951,7 @@
 	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,
-- 
VGER BF report: U 0.498925
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help