提交 40cf65d1 编写于 作者: S Stefan Richter

DVB: firedtv: fix printk format mismatch

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: NMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 c6409468
...@@ -115,7 +115,7 @@ static const char *debug_fcp_ctype(unsigned int ctype) ...@@ -115,7 +115,7 @@ static const char *debug_fcp_ctype(unsigned int ctype)
} }
static const char *debug_fcp_opcode(unsigned int opcode, static const char *debug_fcp_opcode(unsigned int opcode,
const u8 *data, size_t length) const u8 *data, int length)
{ {
switch (opcode) { switch (opcode) {
case AVC_OPCODE_VENDOR: break; case AVC_OPCODE_VENDOR: break;
...@@ -141,7 +141,7 @@ static const char *debug_fcp_opcode(unsigned int opcode, ...@@ -141,7 +141,7 @@ static const char *debug_fcp_opcode(unsigned int opcode,
return "Vendor"; 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; unsigned int subunit_type, subunit_id, op;
const char *prefix = data[0] > 7 ? "FCP <- " : "FCP -> "; const char *prefix = data[0] > 7 ? "FCP <- " : "FCP -> ";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册