All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: linux-media@vger.kernel.org, Michael Hunold <michael@mihu.de>,
	Johannes Stezenbach <js@sig21.net>,
	Michael Krufky <mkrufky@linuxtv.org>
Subject: Re: [PATCH 0/2] Re: [git:v4l-dvb/for_v3.3] [media] dvb-bt8xx: handle errors from dvb_net_init
Date: Fri, 06 Jan 2012 17:04:32 -0200	[thread overview]
Message-ID: <4F0745C0.50605@redhat.com> (raw)
In-Reply-To: <20120106182519.GE15740@elie.hsd1.il.comcast.net>

On 06-01-2012 16:25, Jonathan Nieder wrote:
> Hi Mauro,
> 
> Mauro Carvalho Chehab wrote:
> 
>> Subject: [media] dvb-bt8xx: handle errors from dvb_net_init
> [...]
>> [mchehab.redhat.com: codingstyle fix: printk() should include KERN_ facility level]
> [...]
>> --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c
>> +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
>> @@ -782,7 +782,12 @@ static int __devinit dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type)
>>  		goto err_remove_mem_frontend;
>>  	}
>>  
>> -	dvb_net_init(&card->dvb_adapter, &card->dvbnet, &card->demux.dmx);
>> +	result = dvb_net_init(&card->dvb_adapter, &card->dvbnet, &card->demux.dmx);
>> +	if (result < 0) {
>> +		printk(KERN_ERR,
>> +		       "dvb_bt8xx: dvb_net_init failed (errno = %d)\n", result);
> 
> I think there is an extra comma here:

Yeah, I noticed it, but only after adding it at the main repo :(
> 
> 	$ make drivers/media/dvb/bt8xx/dvb-bt8xx.o
> 	  CHK     include/linux/version.h
> 	  CHK     include/generated/utsrelease.h
> 	  CALL    scripts/checksyscalls.sh
> 	  CC [M]  drivers/media/dvb/bt8xx/dvb-bt8xx.o
> 	drivers/media/dvb/bt8xx/dvb-bt8xx.c: In function ‘dvb_bt8xx_load_card’:
> 	drivers/media/dvb/bt8xx/dvb-bt8xx.c:788:10: warning: too many arguments for format [-Wformat-extra-args]
> 
> Perhaps it would be better to add the KERN_ levels throughout the file
> with a separate patch.  Like this:
> 
> Jonathan Nieder (2):
>   [media] dvb-bt8xx: use dprintk for debug statements
>   [media] dvb-bt8xx: convert printks to pr_err()
> 
>  drivers/media/dvb/bt8xx/dvb-bt8xx.c |   41 +++++++++++++++++------------------
>  1 files changed, 20 insertions(+), 21 deletions(-)


      parent reply	other threads:[~2012-01-06 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1RjBAD-0006Ue-NL@www.linuxtv.org>
2012-01-06 18:25 ` [PATCH 0/2] Re: [git:v4l-dvb/for_v3.3] [media] dvb-bt8xx: handle errors from dvb_net_init Jonathan Nieder
2012-01-06 18:26   ` [PATCH 1/2] [media] dvb-bt8xx: use dprintk for debug statements Jonathan Nieder
2012-01-06 18:26   ` [PATCH 2/2] [media] dvb-bt8xx: convert printks to pr_err() Jonathan Nieder
2012-01-06 19:04   ` Mauro Carvalho Chehab [this message]

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=4F0745C0.50605@redhat.com \
    --to=mchehab@redhat.com \
    --cc=jrnieder@gmail.com \
    --cc=js@sig21.net \
    --cc=linux-media@vger.kernel.org \
    --cc=michael@mihu.de \
    --cc=mkrufky@linuxtv.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.