aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2013-10-04 19:03:28 -0700
committerSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2013-10-04 19:08:13 -0700
commit3994d4e0109658b9aff52fefa5c731f83e35be1c (patch)
tree173b65e38fa9449a06c13681d1a6504dc482ffe9 /net/unix/af_unix.c
parent10aa0fa5e813425fb33ec41f3a8da94faebb1e8e (diff)
net: change error print messages to generate warnings
Given the numerous clients of sockets, it is difficult to find the offending client for the error that is being reported. Change the kernel print messages to generate a warning instead so that we get a complete call stack. Change-Id: I4bfce3e0a5aecd88c6fa4a1f900482449a4b868d Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index c4ce243824b..de30620a0a7 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -366,7 +366,7 @@ static void unix_sock_destructor(struct sock *sk)
WARN_ON(!sk_unhashed(sk));
WARN_ON(sk->sk_socket);
if (!sock_flag(sk, SOCK_DEAD)) {
- printk(KERN_INFO "Attempt to release alive unix socket: %p\n", sk);
+ WARN(1, "Attempt to release alive unix socket: %p\n", sk);
return;
}