projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274a517
)
phonet: Fix build warning.
author
David S. Miller
<davem@davemloft.net>
Thu, 16 Sep 2010 04:34:41 +0000
(21:34 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 16 Sep 2010 04:34:41 +0000
(21:34 -0700)
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>
net/phonet/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/net/phonet/socket.c
b/net/phonet/socket.c
index 6bf6e3c97d5c3c2027b5b21bebf76e7a858babf1..aca8fba099e96828868838c59ae138e3f4e854fe 100644
(file)
--- 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)
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;