netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH 1/1] tipc: add back tipc prefix to log messages
@ 2017-12-11 21:54 John Thompson
  0 siblings, 0 replies; 4+ messages in thread
From: John Thompson @ 2017-12-11 21:54 UTC (permalink / raw)
  To: davem, netdev; +Cc: tipc-discussion

The tipc prefix to log messages generated by tipc was
removed in commit 07f6c4bc0 ("tipc: convert tipc reference
table to use generic rhashtable").

This is still a useful prefix and so add it back.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: John Thompson <thompa.atl@gmail.com>
---
 net/tipc/core.c | 2 --
 net/tipc/core.h | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/tipc/core.c b/net/tipc/core.c
index 0b982d048fb9..4cd9e57446ec 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -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"
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 964342689f2c..f89f9a3c18c2 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -37,6 +37,8 @@
 #ifndef _TIPC_CORE_H
 #define _TIPC_CORE_H

+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/tipc.h>
 #include <linux/tipc_config.h>
 #include <linux/tipc_netlink.h>
-- 
2.15.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [net-next PATCH 1/1] tipc: add back tipc prefix to log messages
@ 2018-01-09 19:50 John Thompson
  2018-01-15 18:42 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: John Thompson @ 2018-01-09 19:50 UTC (permalink / raw)
  To: davem, netdev; +Cc: tipc-discussion

The tipc prefix to log messages generated by tipc was
removed in commit 07f6c4bc0 ("tipc: convert tipc reference
table to use generic rhashtable").

This is still a useful prefix and so add it back.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: John Thompson <thompa.atl@gmail.com>
---
 net/tipc/core.c | 2 --
 net/tipc/core.h | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/tipc/core.c b/net/tipc/core.c
index 0b982d048fb9..4cd9e57446ec 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -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"
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 964342689f2c..f89f9a3c18c2 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -37,6 +37,8 @@
 #ifndef _TIPC_CORE_H
 #define _TIPC_CORE_H

+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/tipc.h>
 #include <linux/tipc_config.h>
 #include <linux/tipc_netlink.h>
-- 
2.15.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [net-next PATCH 1/1] tipc: add back tipc prefix to log messages
  2018-01-09 19:50 [net-next PATCH 1/1] tipc: add back tipc prefix to log messages John Thompson
@ 2018-01-15 18:42 ` David Miller
  2018-01-15 18:43   ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2018-01-15 18:42 UTC (permalink / raw)
  To: thompa.atl; +Cc: netdev, tipc-discussion, jon.maloy, ying.xue

From: John Thompson <thompa.atl@gmail.com>
Date: Wed, 10 Jan 2018 08:50:24 +1300

> The tipc prefix to log messages generated by tipc was
> removed in commit 07f6c4bc0 ("tipc: convert tipc reference
> table to use generic rhashtable").
> 
> This is still a useful prefix and so add it back.
> 
> Acked-by: Jon Maloy <jon.maloy@ericsson.com>
> Signed-off-by: John Thompson <thompa.atl@gmail.com>

Applied, thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next PATCH 1/1] tipc: add back tipc prefix to log messages
  2018-01-15 18:42 ` David Miller
@ 2018-01-15 18:43   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2018-01-15 18:43 UTC (permalink / raw)
  To: thompa.atl; +Cc: netdev, tipc-discussion, jon.maloy, ying.xue

From: David Miller <davem@davemloft.net>
Date: Mon, 15 Jan 2018 13:42:45 -0500 (EST)

> From: John Thompson <thompa.atl@gmail.com>
> Date: Wed, 10 Jan 2018 08:50:24 +1300
> 
>> The tipc prefix to log messages generated by tipc was
>> removed in commit 07f6c4bc0 ("tipc: convert tipc reference
>> table to use generic rhashtable").
>> 
>> This is still a useful prefix and so add it back.
>> 
>> Acked-by: Jon Maloy <jon.maloy@ericsson.com>
>> Signed-off-by: John Thompson <thompa.atl@gmail.com>
> 
> Applied, thank you.

Actually, this breaks the build, reverted:

In file included from net/tipc/addr.h:44:0,
                 from net/tipc/addr.c:38:
net/tipc/core.h:40:0: warning: "pr_fmt" redefined
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
In file included from ./include/linux/kernel.h:14:0,
                 from net/tipc/addr.c:37:
./include/linux/printk.h:285:0: note: this is the location of the previous definition
 #define pr_fmt(fmt) fmt
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-15 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 19:50 [net-next PATCH 1/1] tipc: add back tipc prefix to log messages John Thompson
2018-01-15 18:42 ` David Miller
2018-01-15 18:43   ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2017-12-11 21:54 John Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).