net/packet: clarify source of pr_*() messages
authorBaruch Siach <baruch@tkos.co.il>
Thu, 9 Sep 2021 17:49:47 +0000 (20:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Sep 2021 09:00:59 +0000 (10:00 +0100)
Add pr_fmt macro to spell out the source of messages in prefix.

Before this patch:

  packet size is too long (1543 > 1518)

With this patch:

  af_packet: packet size is too long (1543 > 1518)

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

index 543365f58e9735338b16d5e8f4c824fbaec92c9d..2a2bc64f75cfd86af81aed0cc9841503775f96d4 100644 (file)
@@ -46,6 +46,8 @@
  *                                     Copyright (C) 2011, <lokec@ccs.neu.edu>
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/ethtool.h>
 #include <linux/types.h>
 #include <linux/mm.h>