Use standard macro's for notices. Silence useless debug message on module load. Signed-off-by: Stephen Hemminger --- 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) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html