diff options
author | Joe Perches <joe@perches.com> | 2014-11-05 18:36:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-06 15:11:10 -0500 |
commit | 450834977796cc74d1265d7dfe69cf6767537dfc (patch) | |
tree | e0c644e9978c7030c4109759d4b33e38fb002fb8 /net/ipv4/esp4.c | |
parent | cbffccc970394f82e397fccbeb136eeaffb3c552 (diff) |
net: esp: Convert NETDEBUG to pr_info
Commit 64ce207306de ("[NET]: Make NETDEBUG pure printk wrappers")
originally had these NETDEBUG printks as always emitting.
Commit a2a316fd068c ("[NET]: Replace CONFIG_NET_DEBUG with sysctl")
added a net_msg_warn sysctl to these NETDEBUG uses.
Convert these NETDEBUG uses to normal pr_info calls.
This changes the output prefix from "ESP: " to include
"IPSec: " for the ipv4 case and "IPv6: " for the ipv6 case.
These output lines are now like the other messages in the files.
Other miscellanea:
Neaten the arithmetic spacing to be consistent with other
arithmetic spacing in the files.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r-- | net/ipv4/esp4.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index d2bf02e0a678..60173d4d3a0e 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
@@ -603,12 +603,12 @@ static int esp_init_authenc(struct xfrm_state *x) | |||
603 | BUG_ON(!aalg_desc); | 603 | BUG_ON(!aalg_desc); |
604 | 604 | ||
605 | err = -EINVAL; | 605 | err = -EINVAL; |
606 | if (aalg_desc->uinfo.auth.icv_fullbits/8 != | 606 | if (aalg_desc->uinfo.auth.icv_fullbits / 8 != |
607 | crypto_aead_authsize(aead)) { | 607 | crypto_aead_authsize(aead)) { |
608 | NETDEBUG(KERN_INFO "ESP: %s digestsize %u != %hu\n", | 608 | pr_info("ESP: %s digestsize %u != %hu\n", |
609 | x->aalg->alg_name, | 609 | x->aalg->alg_name, |
610 | crypto_aead_authsize(aead), | 610 | crypto_aead_authsize(aead), |
611 | aalg_desc->uinfo.auth.icv_fullbits/8); | 611 | aalg_desc->uinfo.auth.icv_fullbits / 8); |
612 | goto free_key; | 612 | goto free_key; |
613 | } | 613 | } |
614 | 614 | ||