Commit 207024b9 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

pfkey: add severity to printk

Put severity level on pfkey printk messages
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 62db5cfd
...@@ -99,7 +99,7 @@ static void pfkey_sock_destruct(struct sock *sk) ...@@ -99,7 +99,7 @@ static void pfkey_sock_destruct(struct sock *sk)
skb_queue_purge(&sk->sk_receive_queue); skb_queue_purge(&sk->sk_receive_queue);
if (!sock_flag(sk, SOCK_DEAD)) { if (!sock_flag(sk, SOCK_DEAD)) {
printk("Attempt to release alive pfkey socket: %p\n", sk); pr_err("Attempt to release alive pfkey socket: %p\n", sk);
return; return;
} }
...@@ -1402,7 +1402,7 @@ static inline int event2poltype(int event) ...@@ -1402,7 +1402,7 @@ static inline int event2poltype(int event)
case XFRM_MSG_POLEXPIRE: case XFRM_MSG_POLEXPIRE:
// return SADB_X_SPDEXPIRE; // return SADB_X_SPDEXPIRE;
default: default:
printk("pfkey: Unknown policy event %d\n", event); pr_err("pfkey: Unknown policy event %d\n", event);
break; break;
} }
...@@ -1421,7 +1421,7 @@ static inline int event2keytype(int event) ...@@ -1421,7 +1421,7 @@ static inline int event2keytype(int event)
case XFRM_MSG_EXPIRE: case XFRM_MSG_EXPIRE:
return SADB_EXPIRE; return SADB_EXPIRE;
default: default:
printk("pfkey: Unknown SA event %d\n", event); pr_err("pfkey: Unknown SA event %d\n", event);
break; break;
} }
...@@ -2969,7 +2969,7 @@ static int pfkey_send_notify(struct xfrm_state *x, struct km_event *c) ...@@ -2969,7 +2969,7 @@ static int pfkey_send_notify(struct xfrm_state *x, struct km_event *c)
case XFRM_MSG_NEWAE: /* not yet supported */ case XFRM_MSG_NEWAE: /* not yet supported */
break; break;
default: default:
printk("pfkey: Unknown SA event %d\n", c->event); pr_err("pfkey: Unknown SA event %d\n", c->event);
break; break;
} }
...@@ -2993,7 +2993,7 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, struct km_e ...@@ -2993,7 +2993,7 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, struct km_e
break; break;
return key_notify_policy_flush(c); return key_notify_policy_flush(c);
default: default:
printk("pfkey: Unknown policy event %d\n", c->event); pr_err("pfkey: Unknown policy event %d\n", c->event);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment