All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] [PATCH] bridge: Fix format string for %ul
@ 2016-08-27  3:10 ` Oleg Drokin
  0 siblings, 0 replies; 14+ messages in thread
From: Oleg Drokin @ 2016-08-27  3:10 UTC (permalink / raw)
  To: Stephen Hemminger, David S. Miller
  Cc: netdev, bridge, linux-kernel, Oleg Drokin

%ul would print an unsigned value and a letter l,
likely it was %lu that was meant to print the long int,
but in reality the values printed there are just regular signed
ints, so just dropping the l altogether.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
---
 net/bridge/br_stp_bpdu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c
index 5881fbc..15c4a9c 100644
--- a/net/bridge/br_stp_bpdu.c
+++ b/net/bridge/br_stp_bpdu.c
@@ -230,7 +230,7 @@ void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb,
 			if (net_ratelimit())
 				br_notice(p->br,
 					  "port %u config from %pM"
-					  " (message_age %ul > max_age %ul)\n",
+					  " (message_age %u > max_age %u)\n",
 					  p->port_no,
 					  eth_hdr(skb)->h_source,
 					  bpdu.message_age, bpdu.max_age);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-10-03 20:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-27  3:10 [Bridge] [PATCH] bridge: Fix format string for %ul Oleg Drokin
2016-08-27  3:10 ` Oleg Drokin
2016-08-27 15:13 ` [Bridge] " Sergei Shtylyov
2016-08-27 15:13   ` Sergei Shtylyov
2016-08-27 15:13   ` Sergei Shtylyov
2016-08-27 15:58   ` [Bridge] " Oleg Drokin
2016-08-27 15:58     ` Oleg Drokin
2016-08-27 16:18     ` [Bridge] " Sergei Shtylyov
2016-08-27 16:18       ` Sergei Shtylyov
2016-08-27 16:18       ` Sergei Shtylyov
2016-08-27 16:36       ` [Bridge] " Oleg Drokin
2016-08-27 16:36         ` Oleg Drokin
2017-10-03 20:43 ` [Bridge] " Stephen Hemminger
2017-10-03 20:43   ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.