From: Joe Perches <joe@perches.com>
To: sedat.dilek@gmail.com
Cc: Matthew Garrett <mjg@redhat.com>,
Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>,
Stephen Rothwell <sfr@canb.auug.org.au>,
ibm-acpi-devel@lists.sourceforge.net,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2 2/2] thinkpad_acpi: Convert printks to pr_<level>
Date: Mon, 04 Apr 2011 11:10:13 -0700 [thread overview]
Message-ID: <1301940613.1941.50.camel@Joe-Laptop> (raw)
In-Reply-To: <BANLkTinKXtiNE=4xfNMh+nJBpiYUYFNRZQ@mail.gmail.com>
On Mon, 2011-04-04 at 20:03 +0200, Sedat Dilek wrote:
> On Mon, Apr 4, 2011 at 7:06 PM, Joe Perches <joe@perches.com> wrote:
> > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> [...]
> > #ifdef CONFIG_THINKPAD_ACPI_DEBUG
> > #define vdbg_printk dbg_printk
> > static const char *str_supported(int is_supported);
> > #else
> > -#define vdbg_printk(a_dbg_level, format, arg...) \
> > - do { } while (0)
> > +static inline const char *str_supported(int is_supported) { return ""; }
> > +#define vdbg_printk(a_dbg_level, format, arg...) \
> > + no_printk(format, ##arg)
> > #endif
>
> Should be...
> + do { } while (0)
> ...not...
> + no_printk(format, ##arg)
I disagree. No printk serves as a mechanism to verify
printk arguments when !CONFIG_THINKPAD_ACPI_DEBUG.
next prev parent reply other threads:[~2011-04-04 18:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 9:21 linux-next: Tree for April 4 [BROKEN thinkpad_acpi] Sedat Dilek
2011-04-04 12:22 ` Matthew Garrett
2011-04-04 12:49 ` Joe Perches
2011-04-04 13:00 ` Matthew Garrett
2011-04-04 13:44 ` Sedat Dilek
2011-04-04 14:44 ` Sedat Dilek
2011-04-04 15:02 ` Joe Perches
2011-04-04 15:08 ` Sedat Dilek
2011-04-04 15:13 ` Joe Perches
2011-04-04 17:06 ` [PATCH 1/2] thinkpad_acpi: Correct !CONFIG_THINKPAD_ACPI_VIDEO warning Joe Perches
2011-04-04 17:06 ` [PATCH V2 2/2] thinkpad_acpi: Convert printks to pr_<level> Joe Perches
2011-04-04 18:03 ` Sedat Dilek
2011-04-04 18:10 ` Joe Perches [this message]
2011-04-04 18:14 ` Sedat Dilek
2011-04-04 20:53 ` Sedat Dilek
2011-04-04 20:51 ` [PATCH 1/2] thinkpad_acpi: Correct !CONFIG_THINKPAD_ACPI_VIDEO warning Sedat Dilek
2011-04-05 12:27 ` linux-next: Tree for April 4 [BROKEN thinkpad_acpi] Henrique de Moraes Holschuh
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=1301940613.1941.50.camel@Joe-Laptop \
--to=joe@perches.com \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=sedat.dilek@gmail.com \
--cc=sfr@canb.auug.org.au \
/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