Linux Media Controller development
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Daniel Scheller <d.scheller.oss@gmail.com>
Cc: linux-media@vger.kernel.org, mchehab@kernel.org,
	liplianin@netup.ru, rjkm@metzlerbros.de
Subject: Re: [PATCH] [media] ddbridge: use dev_* macros in favor of printk
Date: Wed, 21 Jun 2017 14:20:31 -0300	[thread overview]
Message-ID: <20170621142031.641cfd29@vento.lan> (raw)
In-Reply-To: <20170621191440.2f38616a@audiostation.wuest.de>

Em Wed, 21 Jun 2017 19:14:40 +0200
Daniel Scheller <d.scheller.oss@gmail.com> escreveu:

> Am Wed, 21 Jun 2017 14:08:08 -0300
> schrieb Mauro Carvalho Chehab <mchehab@s-opensource.com>:
> 
> > Em Wed, 21 Jun 2017 18:53:47 +0200
> > Daniel Scheller <d.scheller.oss@gmail.com> escreveu:
> >   
> > > From: Daniel Scheller <d.scheller@gmx.net>
> > > 
> > > Side effect: KERN_DEBUG messages aren't written to the kernel log anymore.
> > > This also improves the tda18212_ping reporting a bit so users know that if
> > > pinging wasn't successful, bad things will happen.
> > > 
> > > Since in module_init_ddbridge() there's no dev yet, pr_info is used
> > > instead.
> > > 
> > > Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
> > > ---
> > >  drivers/media/pci/ddbridge/ddbridge-core.c | 78 ++++++++++++++++++------------
> > >  1 file changed, 46 insertions(+), 32 deletions(-)
> > > 
> > > diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
> > > index 9420479bee9a..540a121eadd6 100644
> > > --- a/drivers/media/pci/ddbridge/ddbridge-core.c
> > > +++ b/drivers/media/pci/ddbridge/ddbridge-core.c
> > > @@ -17,6 +17,8 @@
> > >   * http://www.gnu.org/copyleft/gpl.html
> > >   */
> > >  
> > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > > +    
> > 
> > I guess this is a left over from the old patch. When you use dev_foo,
> > it will get the driver's name from dev->name. So, no need to do the
> > above.  
> 
> I intentionally left this in for the pr_info used in module_init_ddbridge(). If you prefer, we can ofc probably also leave this as printk like
> 
> printk(KERN_INFO KBUILD_MODNAME ": Digital..."); 

Ah, OK!

Regards,
Mauro

  reply	other threads:[~2017-06-21 17:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21 16:53 [PATCH] [media] ddbridge: use dev_* macros in favor of printk Daniel Scheller
2017-06-21 17:08 ` Mauro Carvalho Chehab
2017-06-21 17:14   ` Daniel Scheller
2017-06-21 17:20     ` Mauro Carvalho Chehab [this message]
2017-06-21 19:20       ` Antti Palosaari
2017-06-21 19:54         ` Daniel Scheller

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=20170621142031.641cfd29@vento.lan \
    --to=mchehab@s-opensource.com \
    --cc=d.scheller.oss@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=liplianin@netup.ru \
    --cc=mchehab@kernel.org \
    --cc=rjkm@metzlerbros.de \
    /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