mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] firedtv: fix printk format mismatch
@ 2009-03-05 18:13 Stefan Richter
  2009-03-05 18:34 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2009-03-05 18:13 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-kernel, linux-media, Mauro Carvalho Chehab

Eliminate
drivers/media/dvb/firewire/firedtv-avc.c: In function 'debug_fcp':
drivers/media/dvb/firewire/firedtv-avc.c:156: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

Mauro, if you don't mind I queue it up in linux1394-2.6.git for after
2.6.29, before 2.6.30-rc1.  There may be firewire subsystem related
changes of firedtv coming together until then.

 drivers/media/dvb/firewire/firedtv-avc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux/drivers/media/dvb/firewire/firedtv-avc.c
===================================================================
--- linux.orig/drivers/media/dvb/firewire/firedtv-avc.c
+++ linux/drivers/media/dvb/firewire/firedtv-avc.c
@@ -115,7 +115,7 @@ static const char *debug_fcp_ctype(unsig
 }
 
 static const char *debug_fcp_opcode(unsigned int opcode,
-				    const u8 *data, size_t length)
+				    const u8 *data, int length)
 {
 	switch (opcode) {
 	case AVC_OPCODE_VENDOR:			break;
@@ -141,7 +141,7 @@ static const char *debug_fcp_opcode(unsi
 	return "Vendor";
 }
 
-static void debug_fcp(const u8 *data, size_t length)
+static void debug_fcp(const u8 *data, int length)
 {
 	unsigned int subunit_type, subunit_id, op;
 	const char *prefix = data[0] > 7 ? "FCP <- " : "FCP -> ";

-- 
Stefan Richter
-=====-==--= --== --=-=
http://arcgraph.de/sr/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] firedtv: fix printk format mismatch
  2009-03-05 18:13 [PATCH] firedtv: fix printk format mismatch Stefan Richter
@ 2009-03-05 18:34 ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2009-03-05 18:34 UTC (permalink / raw)
  To: Stefan Richter; +Cc: linux1394-devel, linux-kernel, linux-media

On Thu, 5 Mar 2009 19:13:43 +0100 (CET)
Stefan Richter <stefanr@s5r6.in-berlin.de> wrote:

> Eliminate
> drivers/media/dvb/firewire/firedtv-avc.c: In function 'debug_fcp':
> drivers/media/dvb/firewire/firedtv-avc.c:156: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'
> 
> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
> 
> Mauro, if you don't mind I queue it up in linux1394-2.6.git for after
> 2.6.29, before 2.6.30-rc1.  There may be firewire subsystem related
> changes of firedtv coming together until then.

Seems fine for me.

> 
>  drivers/media/dvb/firewire/firedtv-avc.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux/drivers/media/dvb/firewire/firedtv-avc.c
> ===================================================================
> --- linux.orig/drivers/media/dvb/firewire/firedtv-avc.c
> +++ linux/drivers/media/dvb/firewire/firedtv-avc.c
> @@ -115,7 +115,7 @@ static const char *debug_fcp_ctype(unsig
>  }
>  
>  static const char *debug_fcp_opcode(unsigned int opcode,
> -				    const u8 *data, size_t length)
> +				    const u8 *data, int length)
>  {
>  	switch (opcode) {
>  	case AVC_OPCODE_VENDOR:			break;
> @@ -141,7 +141,7 @@ static const char *debug_fcp_opcode(unsi
>  	return "Vendor";
>  }
>  
> -static void debug_fcp(const u8 *data, size_t length)
> +static void debug_fcp(const u8 *data, int length)
>  {
>  	unsigned int subunit_type, subunit_id, op;
>  	const char *prefix = data[0] > 7 ? "FCP <- " : "FCP -> ";
> 




Cheers,
Mauro

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-05 18:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-05 18:13 [PATCH] firedtv: fix printk format mismatch Stefan Richter
2009-03-05 18:34 ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®