[DCCP]: Wrong format in printk
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Oct 2007 21:44:01 +0000 (14:44 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:36 +0000 (16:54 -0700)
The elapsed time uses u32, but printk was using %d, not %u.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
net/dccp/options.c

index 172eb6ba870269e825a61d22a188ac62230fd0dc..d361b5533309dc3310564adf483e9e1900c4573f 100644 (file)
@@ -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)