diff options
author | Baruch Siach <baruch@tkos.co.il> | 2021-09-09 20:49:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-10 12:00:59 +0300 |
commit | dc41c4a98a76640e7085815f937eadd1f336ba85 (patch) | |
tree | da308b386aedb4829050ba2bda1544078f906f6b /net/packet/af_packet.c | |
parent | e3f0cc1a945fcefec0c7c9d9dfd028a51daa1846 (diff) | |
download | linux-dc41c4a98a76640e7085815f937eadd1f336ba85.tar.xz |
net/packet: clarify source of pr_*() messages
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>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 543365f58e97..2a2bc64f75cf 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -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> |