Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1471090

[PATCH] bridge: Fix format string for %ul

From Oleg Drokin <green@linuxhacker.ru>
Newsgroups linux.kernel
Subject [PATCH] bridge: Fix format string for %ul
Date 2016-08-27 05:20 +0200
Message-ID <saCk2-7AH-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


%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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] bridge: Fix format string for %ul Oleg Drokin <green@linuxhacker.ru> - 2016-08-27 05:20 +0200
  Re: [PATCH] bridge: Fix format string for %ul Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-08-27 17:20 +0200
    Re: [PATCH] bridge: Fix format string for %ul Oleg Drokin <green@linuxhacker.ru> - 2016-08-27 18:00 +0200
      Re: [PATCH] bridge: Fix format string for %ul Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-08-27 18:20 +0200
        Re: [PATCH] bridge: Fix format string for %ul Oleg Drokin <green@linuxhacker.ru> - 2016-08-27 18:40 +0200

csiph-web