From: Joe Perches <joe@perches.com>
To: Jarod Wilson <jarod@wilsonet.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
linux-media <linux-media@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/media/IR/imon.c: Use pr_err instead of err
Date: Sun, 20 Jun 2010 09:53:51 -0700 [thread overview]
Message-ID: <1277052831.1548.103.camel@Joe-Laptop.home> (raw)
In-Reply-To: <16004456-69D9-41BD-8597-5590BB7B099E@wilsonet.com>
On Sun, 2010-06-20 at 11:58 -0400, Jarod Wilson wrote:
> On Jun 20, 2010, at 3:20 AM, Joe Perches <joe@perches.com> wrote:
> Use the standard error logging mechanisms.
> > Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s" fmt, __func__
> > Remove __func__ from err calls, add '\n', rename to pr_err
> Eh. If we're going to make a change here, I'd rather it be to using
> dev_err instead, since most of the other spew in this driver uses
> similar.
The idea is to eventually remove info/err/warn from usb.h by
changing the code outside of drivers/usb first.
There will always be some mix of printk or pr_<level> along
with dev_<level> because struct device * is NULL or as is
mostly used here there's no struct imon_context * available.
I suggest you have a look and see which ones of these
changes could use dev_<level> instead.
cheers, Joe
next prev parent reply other threads:[~2010-06-20 16:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 7:20 Joe Perches
2010-06-20 15:58 ` Jarod Wilson
2010-06-20 16:53 ` Joe Perches [this message]
2010-06-20 17:34 ` Jarod Wilson
2010-10-18 20:27 ` Jarod Wilson
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=1277052831.1548.103.camel@Joe-Laptop.home \
--to=joe@perches.com \
--cc=jarod@wilsonet.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.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
all inboxes | Powered by JetHome®