From 3994d4e0109658b9aff52fefa5c731f83e35be1c Mon Sep 17 00:00:00 2001 From: Syed Rameez Mustafa Date: Fri, 4 Oct 2013 19:03:28 -0700 Subject: 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 --- net/unix/af_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/unix/af_unix.c') 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; } -- cgit v1.2.3