All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH net-next 1/5] net: fix message priorities
Date: Fri, 29 Aug 2014 00:09:19 -0700	[thread overview]
Message-ID: <20140829071027.960922048@networkplumber.org> (raw)
In-Reply-To: 20140829070918.508987897@networkplumber.org

[-- Attachment #1: net-dbg-msg.patch --]
[-- Type: text/plain, Size: 1117 bytes --]

Using obsolete socket type should be notice not info level.
Registering is normal and should only be debug level.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

--- a/net/socket.c	2014-08-12 13:07:42.000000000 -0700
+++ b/net/socket.c	2014-08-23 10:44:47.118408989 -0700
@@ -1276,8 +1276,8 @@ int __sock_create(struct net *net, int f
 		static int warned;
 		if (!warned) {
 			warned = 1;
-			pr_info("%s uses obsolete (PF_INET,SOCK_PACKET)\n",
-				current->comm);
+			pr_notice("%s uses obsolete (PF_INET,SOCK_PACKET)\n",
+				  current->comm);
 		}
 		family = PF_PACKET;
 	}
@@ -2624,7 +2624,7 @@ int sock_register(const struct net_proto
 	}
 	spin_unlock(&net_family_lock);
 
-	pr_info("NET: Registered protocol family %d\n", ops->family);
+	pr_debug("NET: Registered protocol family %d\n", ops->family);
 	return err;
 }
 EXPORT_SYMBOL(sock_register);
@@ -2652,7 +2652,7 @@ void sock_unregister(int family)
 
 	synchronize_rcu();
 
-	pr_info("NET: Unregistered protocol family %d\n", family);
+	pr_debug("NET: Unregistered protocol family %d\n", family);
 }
 EXPORT_SYMBOL(sock_unregister);
 

  reply	other threads:[~2014-08-29  7:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29  7:09 [PATCH net-next 0/5] printk message cleanup's Stephen Hemminger
2014-08-29  7:09 ` Stephen Hemminger [this message]
2014-08-29  7:09 ` [PATCH net-next 2/5] tcp: silence useless debug message Stephen Hemminger
2014-08-29  7:09 ` [PATCH net-next 3/5] ipv6: silence tunnel loading messages Stephen Hemminger
2014-08-29  7:09 ` [PATCH net-next 4/5] xfrm: replace printk with pr_ macro Stephen Hemminger
2014-08-29  7:09 ` [PATCH net-next 5/5] sched: replace bare printks Stephen Hemminger
2014-08-29 20:12   ` Michael Heimpold
2014-09-02  1:16   ` 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=20140829071027.960922048@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=davem@davemloft.net \
    --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.