提交 9e0064a5 编写于 作者: D David S. Miller

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: NDavid S. Miller <davem@davemloft.net>
上级 274a517e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册