net/sctp: Use pr_fmt and pr_<level>
Change SCTP_DEBUG_PRINTK and SCTP_DEBUG_PRINTK_IPADDR to use do { print } while (0) guards. Add SCTP_DEBUG_PRINTK_CONT to fix errors in log when lines were continued. Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Add a missing newline in "Failed bind hash alloc" Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
dee06e4702
commit
145ce502e4
@ -47,6 +47,8 @@
|
||||
* be incorporated into the next SCTP release.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
@ -336,7 +338,7 @@ static void sctp_v6_get_saddr(struct sctp_sock *sk,
|
||||
memcpy(saddr, baddr, sizeof(union sctp_addr));
|
||||
SCTP_DEBUG_PRINTK("saddr: %pI6\n", &saddr->v6.sin6_addr);
|
||||
} else {
|
||||
printk(KERN_ERR "%s: asoc:%p Could not find a valid source "
|
||||
pr_err("%s: asoc:%p Could not find a valid source "
|
||||
"address for the dest:%pI6\n",
|
||||
__func__, asoc, &daddr->v6.sin6_addr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user