X-GM-THRID: 205981220864 Date: Wed, 18 Feb 2015 09:01:56 -0800 (PST) From: Ksenija Stanojevic To: outreachy-kernel@googlegroups.com Cc: ksenija.stanojevic@gmail.com Message-Id: <55c23bda-fe3e-414c-9da8-a898799af64c@googlegroups.com> In-Reply-To: References: <1424204282-31960-1-git-send-email-ksenija.stanojevic@gmail.com> Subject: Re: [Outreachy kernel] [PATCH v2] Staging: media: vino: Replace printk() and dprintk() with dev_dbg(). MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_604_275015495.1424278916069" X-Google-Token: EISLk6cFgrDlUSxxIjE0 X-Google-IP: 77.46.215.254 ------=_Part_604_275015495.1424278916069 Content-Type: multipart/alternative; boundary="----=_Part_605_800616121.1424278916069" ------=_Part_605_800616121.1424278916069 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I missunderstood how dev_dbg works. i did compile my code and it haven't shown any errors, but I don't have=20 corresponding .ko file On Tuesday, February 17, 2015 at 11:04:31 PM UTC+1, Julia Lawall wrote: > > On Tue, 17 Feb 2015, Ksenija Stanojevi=C4=87 wrote:=20 > > > I removed variables KERN_ERR and KERN_INFO=20 > > and added device argument to dev_dbg in line 230,=20 > > When you send a v2 patch, you could describe the change that you have mad= e=20 > as compared to the previous patch under the ---=20 > > > I don't know where else to put that argument.=20 > > Every call to dev_dbg needs a pointer to a device structure as the first= =20 > argument.=20 > > Did you compile your code? If so, perhaps this file was not selected in= =20 > your configuration and thus it was not compiled. You can see if it was= =20 > compiled by looking to see if it has a corresponding .o file. If not, yo= u=20 > can try selecting the driver in your configuration.=20 > > julia=20 > > > On Tue, Feb 17, 2015 at 10:27 PM, Julia Lawall >=20 > > wrote:=20 > > On Tue, 17 Feb 2015, Ksenija Stanojevic wrote:=20 > >=20 > > > Making variants of existing macros is against kernel coding=20 > > style. This=20 > > > patch removes all definitions made by macro dprinkt() and=20 > > replaces them=20 > > > with dev_dbg().=20 > > >=20 > > > Signed-off-by: Ksenija Stanojevic=20 > > >=20 > > > ---=20 > >=20 > > What change is made for v2?=20 > >=20 > > julia=20 > >=20 > > > drivers/staging/media/vino/saa7191.c | 58=20 > > ++++++++++++++++--------------------=20 > > > 1 file changed, 26 insertions(+), 32 deletions(-)=20 > > >=20 > > > diff --git a/drivers/staging/media/vino/saa7191.c=20 > > b/drivers/staging/media/vino/saa7191.c=20 > > > index 087acab..2aa68c6 100644=20 > > > --- a/drivers/staging/media/vino/saa7191.c=20 > > > +++ b/drivers/staging/media/vino/saa7191.c=20 > > > @@ -33,13 +33,7 @@ MODULE_AUTHOR("Mikael Nousiainen=20 > > >");=20 > > > MODULE_LICENSE("GPL");=20 > > >=20 > > >=20 > > > -/* #define SAA7191_DEBUG */=20 > > >=20 > > > -#ifdef SAA7191_DEBUG=20 > > > -#define dprintk(x...) printk("SAA7191: " x);=20 > > > -#else=20 > > > -#define dprintk(x...)=20 > > > -#endif=20 > > >=20 > > > #define SAA7191_SYNC_COUNT 30=20 > > > #define SAA7191_SYNC_DELAY 100 /* milliseconds */=20 > > > @@ -116,7 +110,7 @@ static int saa7191_read_status(struct=20 > > v4l2_subdev *sd, u8 *value)=20 > > >=20 > > > ret =3D i2c_master_recv(client, value, 1);=20 > > > if (ret < 0) {=20 > > > - printk(KERN_ERR "SAA7191:=20 > > saa7191_read_status(): read failed\n");=20 > > > + dev_dbg("saa7191_read_status(): read=20 > > failed\n");=20 > > > return ret;=20 > > > }=20 > > >=20 > > > @@ -147,7 +141,7 @@ static int saa7191_write_block(struct=20 > > v4l2_subdev *sd,=20 > > >=20 > > > ret =3D i2c_master_send(client, data, length);=20 > > > if (ret < 0) {=20 > > > - printk(KERN_ERR "SAA7191:=20 > > saa7191_write_block(): "=20 > > > + dev_dbg("saa7191_write_block(): "=20 > > > "write failed\n");=20 > > > return ret;=20 > > > }=20 > > > @@ -230,9 +224,9 @@ static int saa7191_s_std(struct=20 > > v4l2_subdev *sd, v4l2_std_id norm)=20 > > >=20 > > > decoder->norm =3D norm;=20 > > >=20 > > > - dprintk("ctl3: %02x stdc: %02x chcv: %02x\n", ctl3,=20 > > > + dev_dbg(&sd->dev, "ctl3: %02x stdc: %02x chcv: %02x\n",= =20 > > ctl3,=20 > > > stdc, chcv);=20 > > > - dprintk("norm: %llx\n", norm);=20 > > > + dev_dbg("norm: %llx\n", norm);=20 > > >=20 > > > return 0;=20 > > > }=20 > > > @@ -241,21 +235,21 @@ static int=20 > > saa7191_wait_for_signal(struct v4l2_subdev *sd, u8 *status)=20 > > > {=20 > > > int i =3D 0;=20 > > >=20 > > > - dprintk("Checking for signal...\n");=20 > > > + dev_dbg("Checking for signal...\n");=20 > > >=20 > > > for (i =3D 0; i < SAA7191_SYNC_COUNT; i++) {=20 > > > if (saa7191_read_status(sd, status))=20 > > > return -EIO;=20 > > >=20 > > > if (((*status) & SAA7191_STATUS_HLCK) =3D=3D 0) {= =20 > > > - dprintk("Signal found\n");=20 > > > + dev_dbg("Signal found\n");=20 > > > return 0;=20 > > > }=20 > > >=20 > > > msleep(SAA7191_SYNC_DELAY);=20 > > > }=20 > > >=20 > > > - dprintk("No signal\n");=20 > > > + dev_dbg("No signal\n");=20 > > >=20 > > > return -EBUSY;=20 > > > }=20 > > > @@ -269,7 +263,7 @@ static int saa7191_querystd(struct=20 > > v4l2_subdev *sd, v4l2_std_id *norm)=20 > > > v4l2_std_id old_norm =3D decoder->norm;=20 > > > int err =3D 0;=20 > > >=20 > > > - dprintk("SAA7191 extended signal auto-detection...\n");= =20 > > > + dev_dbg("SAA7191 extended signal auto-detection...\n");= =20 > > >=20 > > > *norm &=3D V4L2_STD_NTSC | V4L2_STD_PAL | V4L2_STD_SECAM;= =20 > > > stdc &=3D ~SAA7191_STDC_SECS;=20 > > > @@ -301,13 +295,13 @@ static int saa7191_querystd(struct=20 > > v4l2_subdev *sd, v4l2_std_id *norm)=20 > > >=20 > > > if (status & SAA7191_STATUS_FIDT) {=20 > > > /* 60Hz signal -> NTSC */=20 > > > - dprintk("60Hz signal: NTSC\n");=20 > > > + dev_dbg("60Hz signal: NTSC\n");=20 > > > *norm &=3D V4L2_STD_NTSC;=20 > > > return 0;=20 > > > }=20 > > >=20 > > > /* 50Hz signal */=20 > > > - dprintk("50Hz signal: Trying PAL...\n");=20 > > > + dev_dbg("50Hz signal: Trying PAL...\n");=20 > > >=20 > > > /* try PAL first */=20 > > > err =3D saa7191_s_std(sd, V4L2_STD_PAL);=20 > > > @@ -322,19 +316,19 @@ static int saa7191_querystd(struct=20 > > v4l2_subdev *sd, v4l2_std_id *norm)=20 > > >=20 > > > /* not 50Hz ? */=20 > > > if (status & SAA7191_STATUS_FIDT) {=20 > > > - dprintk("No 50Hz signal\n");=20 > > > + dev_dbg("No 50Hz signal\n");=20 > > > saa7191_s_std(sd, old_norm);=20 > > > *norm =3D V4L2_STD_UNKNOWN;=20 > > > return 0;=20 > > > }=20 > > >=20 > > > if (status & SAA7191_STATUS_CODE) {=20 > > > - dprintk("PAL\n");=20 > > > + dev_dbg("PAL\n");=20 > > > *norm &=3D V4L2_STD_PAL;=20 > > > return saa7191_s_std(sd, old_norm);=20 > > > }=20 > > >=20 > > > - dprintk("No color detected with PAL - Trying=20 > > SECAM...\n");=20 > > > + dev_dbg("No color detected with PAL - Trying=20 > > SECAM...\n");=20 > > >=20 > > > /* no color detected ? -> try SECAM */=20 > > > err =3D saa7191_s_std(sd, V4L2_STD_SECAM);=20 > > > @@ -349,19 +343,19 @@ static int saa7191_querystd(struct=20 > > v4l2_subdev *sd, v4l2_std_id *norm)=20 > > >=20 > > > /* not 50Hz ? */=20 > > > if (status & SAA7191_STATUS_FIDT) {=20 > > > - dprintk("No 50Hz signal\n");=20 > > > + dev_dbg("No 50Hz signal\n");=20 > > > *norm =3D V4L2_STD_UNKNOWN;=20 > > > goto out;=20 > > > }=20 > > >=20 > > > if (status & SAA7191_STATUS_CODE) {=20 > > > /* Color detected -> SECAM */=20 > > > - dprintk("SECAM\n");=20 > > > + dev_dbg("SECAM\n");=20 > > > *norm &=3D V4L2_STD_SECAM;=20 > > > return saa7191_s_std(sd, old_norm);=20 > > > }=20 > > >=20 > > > - dprintk("No color detected with SECAM - Going back to=20 > > PAL.\n");=20 > > > + dev_dbg("No color detected with SECAM - Going back to=20 > > PAL.\n");=20 > > > *norm =3D V4L2_STD_UNKNOWN;=20 > > >=20 > > > out:=20 > > > @@ -372,30 +366,30 @@ static int=20 > > saa7191_autodetect_norm(struct v4l2_subdev *sd)=20 > > > {=20 > > > u8 status;=20 > > >=20 > > > - dprintk("SAA7191 signal auto-detection...\n");=20 > > > + dev_dbg("SAA7191 signal auto-detection...\n");=20 > > >=20 > > > - dprintk("Reading status...\n");=20 > > > + dev_dbg("Reading status...\n");=20 > > >=20 > > > if (saa7191_read_status(sd, &status))=20 > > > return -EIO;=20 > > >=20 > > > - dprintk("Checking for signal...\n");=20 > > > + dev_dbg("Checking for signal...\n");=20 > > >=20 > > > /* no signal ? */=20 > > > if (status & SAA7191_STATUS_HLCK) {=20 > > > - dprintk("No signal\n");=20 > > > + dev_dbg("No signal\n");=20 > > > return -EBUSY;=20 > > > }=20 > > >=20 > > > - dprintk("Signal found\n");=20 > > > + dev_dbg("Signal found\n");=20 > > >=20 > > > if (status & SAA7191_STATUS_FIDT) {=20 > > > /* 60hz signal -> NTSC */=20 > > > - dprintk("NTSC\n");=20 > > > + dev_dbg("NTSC\n");=20 > > > return saa7191_s_std(sd, V4L2_STD_NTSC);=20 > > > } else {=20 > > > /* 50hz signal -> PAL */=20 > > > - dprintk("PAL\n");=20 > > > + dev_dbg("PAL\n");=20 > > > return saa7191_s_std(sd, V4L2_STD_PAL);=20 > > > }=20 > > > }=20 > > > @@ -606,18 +600,18 @@ static int saa7191_probe(struct=20 > > i2c_client *client,=20 > > >=20 > > > err =3D saa7191_write_block(sd, sizeof(initseq),=20 > > initseq);=20 > > > if (err) {=20 > > > - printk(KERN_ERR "SAA7191 initialization=20 > > failed\n");=20 > > > + dev_dbg("SAA7191 initialization failed\n");=20 > > > return err;=20 > > > }=20 > > >=20 > > > - printk(KERN_INFO "SAA7191 initialized\n");=20 > > > + dev_dbg("SAA7191 initialized\n");=20 > > >=20 > > > decoder->input =3D SAA7191_INPUT_COMPOSITE;=20 > > > decoder->norm =3D V4L2_STD_PAL;=20 > > >=20 > > > err =3D saa7191_autodetect_norm(sd);=20 > > > if (err && (err !=3D -EBUSY))=20 > > > - printk(KERN_ERR "SAA7191: Signal auto-detection= =20 > > failed\n");=20 > > > + dev_dbg("SAA7191: Signal auto-detection=20 > > failed\n");=20 > > >=20 > > > return 0;=20 > > > }=20 > > > --=20 > > > 1.9.1=20 > > >=20 > > > --=20 > > > You received this message because you are subscribed to the Google=20 > > Groups "outreachy-kernel" group.=20 > > > To unsubscribe from this group and stop receiving emails from it,=20 > > send an email to outreachy-kern...@googlegroups.com .=20 > > > To post to this group, send email to=20 > > outreach...@googlegroups.com .=20 > > > To view this discussion on the web visithttps:// > groups.google.com/d/msgid/outreachy-kernel/1424204282-31960-1-git-=20 > > send-email-ksenija.stanojevic%40gmail.com.=20 > > > For more options, visit https://groups.google.com/d/optout.=20 > > >=20 > >=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups=20 > > "outreachy-kernel" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an=20 > > email to outreachy-kern...@googlegroups.com .=20 > > To post to this group, send email to outreach...@googlegroups.com=20 > .=20 > > To view this discussion on the web visithttps:// > groups.google.com/d/msgid/outreachy-kernel/CAL7P5jKiTvGSxTrJE7uApK=20 > > y7Z%2BEnVZH2x-VRRcPqWYDquqViwg%40mail.gmail.com.=20 > > For more options, visit https://groups.google.com/d/optout.=20 > >=20 > >=20 ------=_Part_605_800616121.1424278916069 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I missunderstood how dev_dbg works.
i did compile my co= de and it haven't shown any errors, but I don't have corresponding .ko file=

On Tuesday, February 17, 2015 at 11:04:31 PM UTC+1, Julia Lawall wr= ote:
On Tue, 17 Feb 2015, Kseni= ja Stanojevi=C4=87 wrote:

> I removed variables KERN_ERR and KERN_INFO
>  and added device argument to dev_dbg in line 230,

When you send a v2 patch, you could describe the change that you have m= ade=20
as compared to the previous patch under the ---

> I don't know where else to put that argument.

Every call to dev_dbg needs a pointer to a device structure as the firs= t=20
argument.

Did you compile your code?  If so, perhaps this file was not selec= ted in=20
your configuration and thus it was not compiled.  You can see if i= t was=20
compiled by looking to see if it has a corresponding .o file.  If = not, you=20
can try selecting the driver in your configuration.

julia

> On Tue, Feb 17, 2015 at 10:27 PM, Julia Lawall <julia....@lip6.fr>
> wrote:
>       On Tue, 17 Feb 2015, Ksenija Stanojevic wrote= :
>=20
>       > Making variants of existing macros is ag= ainst kernel coding
>       style. This
>       > patch removes all definitions made by ma= cro dprinkt() and
>       replaces them
>       > with dev_dbg().
>       >
>       > Signed-off-by: Ksenija Stanojevic
>       <ksenija.s...@gmail= .com>
>       > ---
>=20
>       What change is made for v2?
>=20
>       julia
>=20
>       >  drivers/staging/media/vino/sa= a7191.c | 58
>       ++++++++++++++++--------------------
>       >  1 file changed, 26 insertions(+), = 32 deletions(-)
>       >
>       > diff --git a/drivers/staging/media/vino/= saa7191.c
>       b/drivers/staging/media/vino/saa7191.c
>       > index 087acab..2aa68c6 100644
>       > --- a/drivers/staging/media/vino/sa= a7191.c
>       > +++ b/drivers/staging/media/vino/sa= a7191.c
>       > @@ -33,13 +33,7 @@ MODULE_AUTHOR("Mikael= Nousiainen
>       <tmno...@cc.hut.fi<= /a>>");
>       >  MODULE_LICENSE("GPL");
>       >
>       >
>       > -/* #define SAA7191_DEBUG */
>       >
>       > -#ifdef SAA7191_DEBUG
>       > -#define dprintk(x...) printk("SAA7191: = " x);
>       > -#else
>       > -#define dprintk(x...)
>       > -#endif
>       >
>       >  #define SAA7191_SYNC_COUNT  &= nbsp;30
>       >  #define SAA7191_SYNC_DELAY  &= nbsp;100     /* milliseconds */
>       > @@ -116,7 +110,7 @@ static int saa7191_r= ead_status(struct
>       v4l2_subdev *sd, u8 *value)
>       >
>       >       ret =3D i2c_ma= ster_recv(client, value, 1);
>       >       if (ret < 0= ) {
>       > -          &nbs= p;  printk(KERN_ERR "SAA7191:
>       saa7191_read_status(): read failed\n");
>       > +          &nbs= p;  dev_dbg("saa7191_read_status(): read
>       failed\n");
>       >           =    return ret;
>       >       }
>       >
>       > @@ -147,7 +141,7 @@ static int saa7191_w= rite_block(struct
>       v4l2_subdev *sd,
>       >
>       >       ret =3D i2c_ma= ster_send(client, data, length);
>       >       if (ret < 0= ) {
>       > -          &nbs= p;  printk(KERN_ERR "SAA7191:
>       saa7191_write_block(): "
>       > +          &nbs= p;  dev_dbg("saa7191_write_block(): "
>       >           =           "write failed\n");
>       >           =    return ret;
>       >       }
>       > @@ -230,9 +224,9 @@ static int saa7191_s= _std(struct
>       v4l2_subdev *sd, v4l2_std_id norm)
>       >
>       >       decoder->no= rm =3D norm;
>       >
>       > -     dprintk("ctl3: %02x= stdc: %02x chcv: %02x\n", ctl3,
>       > +     dev_dbg(&sd->= ;dev, "ctl3: %02x stdc: %02x chcv: %02x\n",
>       ctl3,
>       >           =    stdc, chcv);
>       > -     dprintk("norm: %llx= \n", norm);
>       > +     dev_dbg("norm: %llx= \n", norm);
>       >
>       >       return 0;
>       >  }
>       > @@ -241,21 +235,21 @@ static int
>       saa7191_wait_for_signal(struct v4l2_subdev *s= d, u8 *status)
>       >  {
>       >       int i =3D 0;
>       >
>       > -     dprintk("Checking f= or signal...\n");
>       > +     dev_dbg("Checking f= or signal...\n");
>       >
>       >       for (i =3D 0; = i < SAA7191_SYNC_COUNT; i++) {
>       >           =    if (saa7191_read_status(sd, status))
>       >           =            return -EIO;
>       >
>       >           =    if (((*status) & SAA7191_STATUS_HLCK) =3D=3D 0) {
>       > -          &nbs= p;          dprintk("Signal found\n");
>       > +          &nbs= p;          dev_dbg("Signal found\n");
>       >           =            return 0;
>       >           =    }
>       >
>       >           =    msleep(SAA7191_SYNC_DELAY);
>       >       }
>       >
>       > -     dprintk("No signal\= n");
>       > +     dev_dbg("No signal\= n");
>       >
>       >       return -EBUSY;
>       >  }
>       > @@ -269,7 +263,7 @@ static int saa7191_q= uerystd(struct
>       v4l2_subdev *sd, v4l2_std_id *norm)
>       >       v4l2_std_id ol= d_norm =3D decoder->norm;
>       >       int err =3D 0;
>       >
>       > -     dprintk("SAA7191 ex= tended signal auto-detection...\n");
>       > +     dev_dbg("SAA7191 ex= tended signal auto-detection...\n");
>       >
>       >       *norm &=3D= V4L2_STD_NTSC | V4L2_STD_PAL | V4L2_STD_SECAM;
>       >       stdc &=3D = ~SAA7191_STDC_SECS;
>       > @@ -301,13 +295,13 @@ static int saa7191= _querystd(struct
>       v4l2_subdev *sd, v4l2_std_id *norm)
>       >
>       >       if (status &am= p; SAA7191_STATUS_FIDT) {
>       >           =    /* 60Hz signal -> NTSC */
>       > -          &nbs= p;  dprintk("60Hz signal: NTSC\n");
>       > +          &nbs= p;  dev_dbg("60Hz signal: NTSC\n");
>       >           =    *norm &=3D V4L2_STD_NTSC;
>       >           =    return 0;
>       >       }
>       >
>       >       /* 50Hz signal= */
>       > -     dprintk("50Hz signa= l: Trying PAL...\n");
>       > +     dev_dbg("50Hz signa= l: Trying PAL...\n");
>       >
>       >       /* try PAL fir= st */
>       >       err =3D saa719= 1_s_std(sd, V4L2_STD_PAL);
>       > @@ -322,19 +316,19 @@ static int saa7191= _querystd(struct
>       v4l2_subdev *sd, v4l2_std_id *norm)
>       >
>       >       /* not 50Hz ? = */
>       >       if (status &am= p; SAA7191_STATUS_FIDT) {
>       > -          &nbs= p;  dprintk("No 50Hz signal\n");
>       > +          &nbs= p;  dev_dbg("No 50Hz signal\n");
>       >           =    saa7191_s_std(sd, old_norm);
>       >           =    *norm =3D V4L2_STD_UNKNOWN;
>       >           =    return 0;
>       >       }
>       >
>       >       if (status &am= p; SAA7191_STATUS_CODE) {
>       > -          &nbs= p;  dprintk("PAL\n");
>       > +          &nbs= p;  dev_dbg("PAL\n");
>       >           =    *norm &=3D V4L2_STD_PAL;
>       >           =    return saa7191_s_std(sd, old_norm);
>       >       }
>       >
>       > -     dprintk("No color d= etected with PAL - Trying
>       SECAM...\n");
>       > +     dev_dbg("No color d= etected with PAL - Trying
>       SECAM...\n");
>       >
>       >       /* no color de= tected ? -> try SECAM */
>       >       err =3D saa719= 1_s_std(sd, V4L2_STD_SECAM);
>       > @@ -349,19 +343,19 @@ static int saa7191= _querystd(struct
>       v4l2_subdev *sd, v4l2_std_id *norm)
>       >
>       >       /* not 50Hz ? = */
>       >       if (status &am= p; SAA7191_STATUS_FIDT) {
>       > -          &nbs= p;  dprintk("No 50Hz signal\n");
>       > +          &nbs= p;  dev_dbg("No 50Hz signal\n");
>       >           =    *norm =3D V4L2_STD_UNKNOWN;
>       >           =    goto out;
>       >       }
>       >
>       >       if (status &am= p; SAA7191_STATUS_CODE) {
>       >           =    /* Color detected -> SECAM */
>       > -          &nbs= p;  dprintk("SECAM\n");
>       > +          &nbs= p;  dev_dbg("SECAM\n");
>       >           =    *norm &=3D V4L2_STD_SECAM;
>       >           =    return saa7191_s_std(sd, old_norm);
>       >       }
>       >
>       > -     dprintk("No color d= etected with SECAM - Going back to
>       PAL.\n");
>       > +     dev_dbg("No color d= etected with SECAM - Going back to
>       PAL.\n");
>       >       *norm =3D V4L2= _STD_UNKNOWN;
>       >
>       >  out:
>       > @@ -372,30 +366,30 @@ static int
>       saa7191_autodetect_norm(struct v4l2_subdev *s= d)
>       >  {
>       >       u8 status;
>       >
>       > -     dprintk("SAA7191 si= gnal auto-detection...\n");
>       > +     dev_dbg("SAA7191 si= gnal auto-detection...\n");
>       >
>       > -     dprintk("Reading st= atus...\n");
>       > +     dev_dbg("Reading st= atus...\n");
>       >
>       >       if (saa7191_re= ad_status(sd, &status))
>       >           =    return -EIO;
>       >
>       > -     dprintk("Checking f= or signal...\n");
>       > +     dev_dbg("Checking f= or signal...\n");
>       >
>       >       /* no signal ?= */
>       >       if (status &am= p; SAA7191_STATUS_HLCK) {
>       > -          &nbs= p;  dprintk("No signal\n");
>       > +          &nbs= p;  dev_dbg("No signal\n");
>       >           =    return -EBUSY;
>       >       }
>       >
>       > -     dprintk("Signal fou= nd\n");
>       > +     dev_dbg("Signal fou= nd\n");
>       >
>       >       if (status &am= p; SAA7191_STATUS_FIDT) {
>       >           =    /* 60hz signal -> NTSC */
>       > -          &nbs= p;  dprintk("NTSC\n");
>       > +          &nbs= p;  dev_dbg("NTSC\n");
>       >           =    return saa7191_s_std(sd, V4L2_STD_NTSC);
>       >       } else {
>       >           =    /* 50hz signal -> PAL */
>       > -          &nbs= p;  dprintk("PAL\n");
>       > +          &nbs= p;  dev_dbg("PAL\n");
>       >           =    return saa7191_s_std(sd, V4L2_STD_PAL);
>       >       }
>       >  }
>       > @@ -606,18 +600,18 @@ static int saa7191= _probe(struct
>       i2c_client *client,
>       >
>       >       err =3D saa719= 1_write_block(sd, sizeof(initseq),
>       initseq);
>       >       if (err) {
>       > -          &nbs= p;  printk(KERN_ERR "SAA7191 initialization
>       failed\n");
>       > +          &nbs= p;  dev_dbg("SAA7191 initialization failed\n");
>       >           =    return err;
>       >       }
>       >
>       > -     printk(KERN_INFO "S= AA7191 initialized\n");
>       > +     dev_dbg("SAA7191 in= itialized\n");
>       >
>       >       decoder->in= put =3D SAA7191_INPUT_COMPOSITE;
>       >       decoder->no= rm =3D V4L2_STD_PAL;
>       >
>       >       err =3D saa719= 1_autodetect_norm(sd);
>       >       if (err &&= amp; (err !=3D -EBUSY))
>       > -          &nbs= p;  printk(KERN_ERR "SAA7191: Signal auto-detection
>       failed\n");
>       > +          &nbs= p;  dev_dbg("SAA7191: Signal auto-detection
>       failed\n");
>       >
>       >       return 0;
>       >  }
>       > --
>       > 1.9.1
>       >
> > --
> > You received this message because you are subscribed to the G= oogle
> Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from= it,
> send an email to
outreachy-kern...@goo= glegroups.com.
> > To post to this group, send email to
> outreach...@googlegroups.com.
> > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-k= ernel/1424204282-31960-1-git-
> send-email-ksenija.stanojevic%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
>=20
>=20
> --
> You received this message because you are subscribed to the Google= Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, = send an
> email to outreachy-kern...@googlegroup= s.com.
> To post to this group, send email to outrea= ch...@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kerne= l/CAL7P5jKiTvGSxTrJE7uApK
> y7Z%2BEnVZH2x-VRRcPqWYDquqViwg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/op= tout.
>=20
>
------=_Part_605_800616121.1424278916069-- ------=_Part_604_275015495.1424278916069--