tipc: add back tipc prefix to log messages
authorMatt Bennett <matt.bennett@alliedtelesis.co.nz>
Wed, 13 Nov 2019 23:20:03 +0000 (12:20 +1300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:03:03 +0000 (18:03 -0800)
The tipc prefix for log messages generated by tipc was
removed in commit 07f6c4bc048a ("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>
net/tipc/core.c
net/tipc/core.h

index 23cb379a93d603306aafdd2ecbc61426a3bea4ce..8f35060a24e1d04b12e6d40cb9427765e0602c67 100644 (file)
@@ -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"
index 60d829581068b94f9c69e251f074902614a93540..3042f654e0af07d70760c2d6cb1568ee703b9f9e 100644 (file)
 #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;