aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-09-16 00:34:41 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-16 00:34:41 -0400
commit9e0064a5456fd75fd7c70f6f3692c7f732f91a65 (patch)
tree766f7cc899c6f5ac910ba95c15bf2600cce69e46 /net/phonet
parent274a517ec13b3b47047b97a2e7c912138c9806e0 (diff)
phonet: Fix build warning.
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>
Diffstat (limited to 'net/phonet')
-rw-r--r--net/phonet/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 6bf6e3c97d5c..aca8fba099e9 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -723,7 +723,8 @@ static int pn_res_seq_show(struct seq_file *seq, void *v)
723 struct sock *sk = *psk; 723 struct sock *sk = *psk;
724 724
725 seq_printf(seq, "%02X %5d %lu%n", 725 seq_printf(seq, "%02X %5d %lu%n",
726 psk - pnres.sk, sock_i_uid(sk), sock_i_ino(sk), &len); 726 (int) (psk - pnres.sk), sock_i_uid(sk),
727 sock_i_ino(sk), &len);
727 } 728 }
728 seq_printf(seq, "%*s\n", 63 - len, ""); 729 seq_printf(seq, "%*s\n", 63 - len, "");
729 return 0; 730 return 0;