]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/netfilter/ipvs/ip_vs_proto_ah_esp.c
IPVS: use pr_fmt
[mirror_ubuntu-bionic-kernel.git] / net / netfilter / ipvs / ip_vs_proto_ah_esp.c
index 79f56c1e7c19b0ef771ed553ea90d743e736b9f8..c30b43c36cd7185569ef95354ccd552cc2600aee 100644 (file)
@@ -10,6 +10,9 @@
  *
  */
 
+#define KMSG_COMPONENT "IPVS"
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+
 #include <linux/in.h>
 #include <linux/ip.h>
 #include <linux/module.h>
@@ -138,7 +141,7 @@ ah_esp_debug_packet_v4(struct ip_vs_protocol *pp, const struct sk_buff *skb,
                sprintf(buf, "%s %pI4->%pI4",
                        pp->name, &ih->saddr, &ih->daddr);
 
-       printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
+       pr_debug("%s: %s\n", msg, buf);
 }
 
 #ifdef CONFIG_IP_VS_IPV6
@@ -156,7 +159,7 @@ ah_esp_debug_packet_v6(struct ip_vs_protocol *pp, const struct sk_buff *skb,
                sprintf(buf, "%s %pI6->%pI6",
                        pp->name, &ih->saddr, &ih->daddr);
 
-       printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
+       pr_debug("%s: %s\n", msg, buf);
 }
 #endif