Skip to content

Commit

Permalink
pfkey: add severity to printk
Browse files Browse the repository at this point in the history
Put severity level on pfkey printk messages

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
stephen hemminger authored and davem330 committed May 18, 2010
1 parent 62db5cf commit 207024b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static void pfkey_sock_destruct(struct sock *sk)
skb_queue_purge(&sk->sk_receive_queue);

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;
}

Expand Down Expand Up @@ -1402,7 +1402,7 @@ static inline int event2poltype(int event)
case XFRM_MSG_POLEXPIRE:
// return SADB_X_SPDEXPIRE;
default:
printk("pfkey: Unknown policy event %d\n", event);
pr_err("pfkey: Unknown policy event %d\n", event);
break;
}

Expand All @@ -1421,7 +1421,7 @@ static inline int event2keytype(int event)
case XFRM_MSG_EXPIRE:
return SADB_EXPIRE;
default:
printk("pfkey: Unknown SA event %d\n", event);
pr_err("pfkey: Unknown SA event %d\n", event);
break;
}

Expand Down Expand Up @@ -2969,7 +2969,7 @@ static int pfkey_send_notify(struct xfrm_state *x, struct km_event *c)
case XFRM_MSG_NEWAE: /* not yet supported */
break;
default:
printk("pfkey: Unknown SA event %d\n", c->event);
pr_err("pfkey: Unknown SA event %d\n", c->event);
break;
}

Expand All @@ -2993,7 +2993,7 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, struct km_e
break;
return key_notify_policy_flush(c);
default:
printk("pfkey: Unknown policy event %d\n", c->event);
pr_err("pfkey: Unknown policy event %d\n", c->event);
break;
}

Expand Down

0 comments on commit 207024b

Please sign in to comment.