lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140915152554.GA26218@sudip-PC>
Date:	Mon, 15 Sep 2014 20:55:54 +0530
From:	Sudip Mukherjee <sudipm.mukherjee@...il.com>
To:	Takashi Iwai <tiwai@...e.de>
Cc:	Jaroslav Kysela <perex@...ex.cz>, alsa-devel@...a-project.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] sound: pci: ctxfi: pr_* replaced with dev_*

On Mon, Sep 15, 2014 at 04:29:48PM +0200, Takashi Iwai wrote:
> At Mon, 15 Sep 2014 19:39:41 +0530,
> Sudip Mukherjee wrote:
> > 
> > pr_* macros replaced with dev_* as they are more preffered over pr_*.
> > 
> > Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
> > ---
> > 
> > in v1 Takashi mentioned that now we have card->dev
> > so v2 is using card->dev as much as possible.
> > 
> >  sound/pci/ctxfi/ctatc.c      | 24 ++++++++++++++----------
> >  sound/pci/ctxfi/cthw20k1.c   | 15 +++++++++------
> >  sound/pci/ctxfi/cthw20k2.c   | 22 ++++++++++++++--------
> >  sound/pci/ctxfi/ctmixer.c    |  6 ++++--
> >  sound/pci/ctxfi/ctpcm.c      |  9 ++++++---
> >  sound/pci/ctxfi/ctresource.c | 20 +++++++++++++-------
> >  sound/pci/ctxfi/xfi.c        | 15 +++++++++------
> >  7 files changed, 69 insertions(+), 42 deletions(-)
> > 
> > diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c
> > index d92a08c..a786bc1 100644
> > --- a/sound/pci/ctxfi/ctatc.c
> > +++ b/sound/pci/ctxfi/ctatc.c
> > @@ -1282,8 +1282,8 @@ static int atc_identify_card(struct ct_atc *atc, unsigned int ssid)
> >  	p = snd_pci_quirk_lookup_id(vendor_id, device_id, list);
> >  	if (p) {
> >  		if (p->value < 0) {
> > -			pr_err("ctxfi: Device %04x:%04x is black-listed\n",
> > -			       vendor_id, device_id);
> > +			dev_err(atc->card->dev, "ctxfi: Device %04x:%04x is black-listed\n",
> > +				vendor_id, device_id);
> 
> You need no prefix for dev_xxx().
> 
i was also thinking that . :)
> > diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
> > index e49d2be..80beecb 100644
> > --- a/sound/pci/ctxfi/ctresource.c
> > +++ b/sound/pci/ctxfi/ctresource.c
> (snip)
> > @@ -282,8 +287,9 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
> >  		case SUM:
> >  			break;
> >  		default:
> > -			pr_err("ctxfi: Invalid resource type value %d!\n",
> > -				mgr->type);
> > +			dev_err(&(((struct hw *)mgr->hw)->pci->dev),
> > +				"ctxfi: Invalid resource type value %d!\n",
> > +				 mgr->type);
> 
> Did you really conclude that this is the best way?
> Also, is it good to mix up the usages of both card->dev and &pci->dev?
> Think again.
> 

i have a doubt regarding this :- 
in the snd_card_new()  card->dev is being assigned with &pci->dev , 
then are not they the same ?

i was trying to get some way of finding out the reference of card->dev from the resource manager ,
but ...  :( 
i will try again and if i cant find any way i will ask for some hint from you.

i am still a newbie , and started this  pr_* to dev_* on your inspiration , and i hope
you will not be irritated by my patches . :)

thanks
sudip


> 
> thanks,
> 
> Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ