Skip to content

Commit

Permalink
tipc: add back tipc prefix to log messages
Browse files Browse the repository at this point in the history
The tipc prefix for log messages generated by tipc was
removed in commit 07f6c4b ("tipc: convert tipc reference
table to use generic rhashtable").

This is still a useful prefix so add it back.

Signed-off-by: Matt Bennett <matt.bennett@alliedtelesis.co.nz>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matt Bennett authored and David S. Miller committed Nov 15, 2019
1 parent d15a502 commit d7f9f47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/tipc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include "core.h"
#include "name_table.h"
#include "subscr.h"
Expand Down
6 changes: 6 additions & 0 deletions net/tipc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
#include <linux/rhashtable.h>
#include <net/genetlink.h>

#ifdef pr_fmt
#undef pr_fmt
#endif

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

struct tipc_node;
struct tipc_bearer;
struct tipc_bc_base;
Expand Down

0 comments on commit d7f9f47

Please sign in to comment.