From: Stephen Hemminger <stephen@networkplumber.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH net-next 4/5] xfrm: replace printk with pr_ macro
Date: Fri, 29 Aug 2014 00:09:22 -0700 [thread overview]
Message-ID: <20140829071033.739459252@networkplumber.org> (raw)
In-Reply-To: 20140829070918.508987897@networkplumber.org
[-- Attachment #1: xfrm-msg.patch --]
[-- Type: text/plain, Size: 1123 bytes --]
Use standard macro's for notices.
Silence useless debug message on module load.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/net/xfrm/xfrm_user.c 2014-08-12 13:07:42.000000000 -0700
+++ b/net/xfrm/xfrm_user.c 2014-08-22 16:51:45.060027772 -0700
@@ -2582,8 +2582,7 @@ static int xfrm_send_state_notify(struct
case XFRM_MSG_FLUSHSA:
return xfrm_notify_sa_flush(c);
default:
- printk(KERN_NOTICE "xfrm_user: Unknown SA event %d\n",
- c->event);
+ pr_notice("xfrm_user: Unknown SA event %d\n", c->event);
break;
}
@@ -2875,8 +2874,7 @@ static int xfrm_send_policy_notify(struc
case XFRM_MSG_POLEXPIRE:
return xfrm_exp_policy_notify(xp, dir, c);
default:
- printk(KERN_NOTICE "xfrm_user: Unknown Policy event %d\n",
- c->event);
+ pr_notice("xfrm_user: Unknown Policy event %d\n", c->event);
}
return 0;
@@ -3031,7 +3029,7 @@ static int __init xfrm_user_init(void)
{
int rv;
- printk(KERN_INFO "Initializing XFRM netlink socket\n");
+ pr_debug("Initializing XFRM netlink socket\n");
rv = register_pernet_subsys(&xfrm_user_net_ops);
if (rv < 0)
next prev parent 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 ` [PATCH net-next 1/5] net: fix message priorities Stephen Hemminger
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 ` Stephen Hemminger [this message]
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=20140829071033.739459252@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.