Skip to contentSkip to conversation

: Wrong format in printk

PATCH New Arnaldo Carvalho de Melo 1 participant 1 message Sep 29, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 11/13 : Wrong format in printk

The elapsed time uses u32, but printk was using %d, not %u.

---
 net/dccp/options.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/dccp/options.c +1 -1
index 172eb6b..d361b55 100644
@@ -179,7 +179,7 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb)
 			else
 				elapsed_time = ntohl(*(__be32 *)(value + 4));
 
-			dccp_pr_debug_cat(", ELAPSED_TIME=%d\n", elapsed_time);
+			dccp_pr_debug_cat(", ELAPSED_TIME=%u\n", elapsed_time);
 
 			/* Give precedence to the biggest ELAPSED_TIME */
 			if (elapsed_time > opt_recv->dccpor_elapsed_time)
Signature · 1 line
1.5.2.2