Skip to content

Commit

Permalink
phonet: Fix build warning.
Browse files Browse the repository at this point in the history
net/phonet/socket.c: In function ‘pn_res_seq_show’:
net/phonet/socket.c:726: warning: format ‘%02X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 16, 2010
1 parent 274a517 commit 9e0064a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/phonet/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,8 @@ static int pn_res_seq_show(struct seq_file *seq, void *v)
struct sock *sk = *psk;

seq_printf(seq, "%02X %5d %lu%n",
psk - pnres.sk, sock_i_uid(sk), sock_i_ino(sk), &len);
(int) (psk - pnres.sk), sock_i_uid(sk),
sock_i_ino(sk), &len);
}
seq_printf(seq, "%*s\n", 63 - len, "");
return 0;
Expand Down

0 comments on commit 9e0064a

Please sign in to comment.