Skip to content

Commit

Permalink
net/packet: clarify source of pr_*() messages
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
baruchsiach authored and davem330 committed Sep 10, 2021
1 parent e3f0cc1 commit dc41c4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
* Copyright (C) 2011, <[email protected]>
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/ethtool.h>
#include <linux/types.h>
#include <linux/mm.h>
Expand Down

0 comments on commit dc41c4a

Please sign in to comment.