netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Shows proper function name for pr_debug() messages.
@ 2016-03-14 20:07 Weongyo Jeong
  2016-03-15  0:15 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Weongyo Jeong @ 2016-03-14 20:07 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo Neira Ayuso

It seems pr_debug() calls didn't be updated while code was refactoring.

Signed-off-by: Weongyo Jeong <weongyo.linux@gmail.com>
---
 net/netfilter/nf_conntrack_core.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index f60b4fd..ebd4d23 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -1081,14 +1081,15 @@ resolve_normal_ct(struct net *net, struct nf_conn *tmpl,
 	} else {
 		/* Once we've had two way comms, always ESTABLISHED. */
 		if (test_bit(IPS_SEEN_REPLY_BIT, &ct->status)) {
-			pr_debug("nf_conntrack_in: normal packet for %p\n", ct);
+			pr_debug("resolve_normal_ct: normal packet for %p\n",
+			    ct);
 			*ctinfo = IP_CT_ESTABLISHED;
 		} else if (test_bit(IPS_EXPECTED_BIT, &ct->status)) {
-			pr_debug("nf_conntrack_in: related packet for %p\n",
+			pr_debug("resolve_normal_ct: related packet for %p\n",
 				 ct);
 			*ctinfo = IP_CT_RELATED;
 		} else {
-			pr_debug("nf_conntrack_in: new packet for %p\n", ct);
+			pr_debug("resolve_normal_ct: new packet for %p\n", ct);
 			*ctinfo = IP_CT_NEW;
 		}
 		*set_reply = 0;
-- 
2.1.3


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

* Re: [PATCH] Shows proper function name for pr_debug() messages.
  2016-03-14 20:07 [PATCH] Shows proper function name for pr_debug() messages Weongyo Jeong
@ 2016-03-15  0:15 ` Pablo Neira Ayuso
  2016-03-15 17:59   ` Weongyo Jeong
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2016-03-15  0:15 UTC (permalink / raw)
  To: Weongyo Jeong; +Cc: netfilter-devel

On Mon, Mar 14, 2016 at 01:07:36PM -0700, Weongyo Jeong wrote:
> It seems pr_debug() calls didn't be updated while code was refactoring.

Better add:

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

at the top of the file.

Have a look at beacd3e8ef23 ("netfilter: nfnetlink_log: Make use of
pr_fmt where applicable") for instance.

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

* Re: [PATCH] Shows proper function name for pr_debug() messages.
  2016-03-15  0:15 ` Pablo Neira Ayuso
@ 2016-03-15 17:59   ` Weongyo Jeong
  0 siblings, 0 replies; 3+ messages in thread
From: Weongyo Jeong @ 2016-03-15 17:59 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

On Tue, Mar 15, 2016 at 01:15:01AM +0100, Pablo Neira Ayuso wrote:
> On Mon, Mar 14, 2016 at 01:07:36PM -0700, Weongyo Jeong wrote:
> > It seems pr_debug() calls didn't be updated while code was refactoring.
> 
> Better add:
> 
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> 
> at the top of the file.
> 
> Have a look at beacd3e8ef23 ("netfilter: nfnetlink_log: Make use of
> pr_fmt where applicable") for instance.

Thank you for review.  I'd submitted a patch again following your
suggestion.

Regards,
Weongyo Jeong

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

end of thread, other threads:[~2016-03-15 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 20:07 [PATCH] Shows proper function name for pr_debug() messages Weongyo Jeong
2016-03-15  0:15 ` Pablo Neira Ayuso
2016-03-15 17:59   ` Weongyo Jeong

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).