]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
DVB: firedtv: fix printk format mismatch
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 5 Mar 2009 18:13:43 +0000 (19:13 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:54 +0000 (20:56 +0100)
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'

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/media/dvb/firewire/firedtv-avc.c

index b55d9ccaf33ed4b5fb21d420cf1eed46bcf26efa..1a300f00e0f526eefe24c13787995ae7c2a1ed2e 100644 (file)
@@ -115,7 +115,7 @@ static const char *debug_fcp_ctype(unsigned int ctype)
 }
 
 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(unsigned int opcode,
        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 -> ";