From: Patrick McHardy <kaber@trash.net>
To: Joe Perches <joe@perches.com>
Cc: netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH 2/3] net/netfilter: Convert printk uses to pr_<level>
Date: Sat, 13 Jun 2009 12:45:15 +0200 [thread overview]
Message-ID: <4A33833B.4080609@trash.net> (raw)
In-Reply-To: <835d5482f92aa00f571b2775b96e0e555c31bcf8.1244705154.git.joe@perches.com>
Joe Perches wrote:
> Remove function names from format strings
> Add #define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__
In my opinion a lot of the debugging messages should simply be
removed, they provide little informational value and decrease
readability of the code. Unfortunately I couldn't convince
everyone of that.
> #ifdef CONFIG_NF_CT_ACCT
> - printk(KERN_WARNING "CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use\n");
> - printk(KERN_WARNING "nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or\n");
> - printk(KERN_WARNING "sysctl net.netfilter.nf_conntrack_acct=1 to enable it.\n");
> + pr_warning("CONFIG_NF_CT_ACCT is deprecated and will be removed soon.\n");
> + pr_warning("Please use nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack\n");
> + pr_warning("module option or sysctl net.netfilter.nf_conntrack_acct=1 to enable it.\n");
For non-debugging messages that should provide enough information
to make sense of them without function names, this change does not
make much sense in my opinion.
Instead of a half-way readable message, we now would get:
nf_conntrack: nf_conntrack_acct_init: CONFIG_NF_CT_ACCT is deprecated ...
which is not an improvement at all. So unless we can limit this
to debugging message, I'll pass on this change.
next prev parent reply other threads:[~2009-06-13 10:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 7:40 [PATCH 0/3] netfilter: Use pr_<level> and pr_fmt Joe Perches
2009-06-11 7:40 ` [PATCH 1/3] x_tables: Convert printk to pr_err Joe Perches
2009-06-13 10:35 ` Patrick McHardy
2009-06-11 7:40 ` [PATCH 2/3] net/netfilter: Convert printk uses to pr_<level> Joe Perches
2009-06-13 10:45 ` Patrick McHardy [this message]
2009-06-16 17:58 ` Joe Perches
2009-06-11 7:40 ` [PATCH 3/3] netfilter h323_asn1.c: convert PRINT to pr_info Joe Perches
2009-06-11 11:04 ` [PATCH 0/3] netfilter: Use pr_<level> and pr_fmt Jan Engelhardt
2009-06-11 17:44 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A33833B.4080609@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).