Skip to content

Commit

Permalink
[DCCP]: Wrong format in printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Oct 10, 2007
1 parent 451bc04 commit dcad856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dccp/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dcad856

Please sign in to comment.