From: Greg KH <gregkh@linuxfoundation.org>
To: Ian Cowan <ian@linux.cowan.aero>
Cc: Dan Carpenter <dan.carpenter@oracle.com>,
clabbe@baylibre.com, mchehab@kernel.org,
mjpeg-users@lists.sourceforge.net, linux-media@vger.kernel.org,
linux-staging@lists.linux.dev
Subject: Re: [PATCH] media: staging: zoran: refactor printk debugging function
Date: Fri, 22 Apr 2022 07:10:34 +0200 [thread overview]
Message-ID: <YmI4yh88pYVvVE/X@kroah.com> (raw)
In-Reply-To: <YmH3IZhUrvEzZlZU@fedora>
On Thu, Apr 21, 2022 at 08:30:25PM -0400, Ian Cowan wrote:
> On Thu, Apr 21, 2022 at 06:52:04PM +0300, Dan Carpenter wrote:
> > On Thu, Apr 21, 2022 at 11:22:00AM -0400, Ian Cowan wrote:
> > >
> > > For using the dev_dbg() macro, do you define this in the header file
> > > (i.e. for this it would be videocodec.h), or where should this be
> > > included from?
> >
> > dev_dbg() is defined in include/linux/dev_printk.h. Look around at how
> > it's used. pr_debug() might be an option, but I don't know if we will
> > accept that, we prefer dev_dbg().
> >
> > regards,
> > dan carpenter
> >
>
> I'm about to submit the modified patch, but I went and looked and we
> cannot use dev_dbg() because these specific drivers do not have any
> association with a device struct.
Then please fix that issue, as there is a real struct device that they
are using somewhere. That is the correct solution as drivers should
never use pr_* calls directly.
thanks,
greg k-h
next prev parent reply other threads:[~2022-04-22 5:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 0:23 [PATCH] media: staging: zoran: refactor printk debugging function Ian Cowan
2022-04-21 14:21 ` Dan Carpenter
2022-04-21 15:22 ` Ian Cowan
2022-04-21 15:52 ` Dan Carpenter
2022-04-21 18:13 ` Ian Cowan
2022-04-22 0:30 ` Ian Cowan
2022-04-22 5:10 ` Greg KH [this message]
2022-04-23 5:23 ` Ian Cowan
2022-04-23 5:51 ` Greg KH
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=YmI4yh88pYVvVE/X@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=clabbe@baylibre.com \
--cc=dan.carpenter@oracle.com \
--cc=ian@linux.cowan.aero \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=mjpeg-users@lists.sourceforge.net \
/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