From: Eric Dumazet <dada1@cosmosbay.com>
To: Joe Perches <joe@perches.com>, David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: Cleanup of af_unix
Date: Mon, 17 Nov 2008 20:20:29 +0100 [thread overview]
Message-ID: <4921C3FD.106@cosmosbay.com> (raw)
In-Reply-To: <1226907282.4037.31.camel@localhost>
[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]
Joe Perches a écrit :
> On Mon, 2008-11-17 at 07:46 +0100, Eric Dumazet wrote:
>> [PATCH] net: Cleanup of af_unix
>>
>> This is a pure cleanup of net/unix/af_unix.c to meet current code style standards
>>
>> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
>> ---
>> net/unix/af_unix.c | 117 ++++++++++++++++++++-----------------------
>> 1 files changed, 55 insertions(+), 62 deletions(-)
>> plain text document attachment (af_unix_cleanup.patch)
>> diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
>> index 4a39771..58db2a2 100644
>> --- a/net/unix/af_unix.c
>> +++ b/net/unix/af_unix.c
>> @@ -354,7 +353,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("Attempt to release alive unix socket: %p\n", sk);
>> + printk(KERN_DEBUG "Attempt to release alive unix socket: %p\n", sk);
>> return;
>> }
>>
>
> Well, perhaps not quite pure.
> The KERN_ level selection is debatable.
> This could or perhaps should be KERN_INFO.
Thanks Joe
[PATCH] net: af_unix should use KERN_INFO instead of KERN_DEBUG
As spotted by Joe Perches, we should use KERN_INFO in unix_sock_destructor()
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
[-- Attachment #2: af_unix_printk.patch --]
[-- Type: text/plain, Size: 453 bytes --]
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index f2cf3f5..da3e804 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -353,7 +353,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_DEBUG "Attempt to release alive unix socket: %p\n", sk);
+ printk(KERN_INFO "Attempt to release alive unix socket: %p\n", sk);
return;
}
next prev parent reply other threads:[~2008-11-17 19:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 6:10 [PATCH] net: Cleanup of af_unix Eric Dumazet
2008-11-17 6:32 ` David Miller
2008-11-17 6:46 ` Eric Dumazet
2008-11-17 6:59 ` David Miller
2008-11-17 7:34 ` Joe Perches
2008-11-17 7:48 ` Eric Dumazet
2008-11-17 19:20 ` Eric Dumazet [this message]
2008-11-19 23:48 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4921C3FD.106@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.