summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/firewire/firedtv-avc.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-13 18:06:14 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-13 18:06:14 -0300
commit9840199e825a71000f4d87e61380867fe3dc7f80 (patch)
treeaaee9b6e6b95130e5409343389d9f65dd9867094 /linux/drivers/media/dvb/firewire/firedtv-avc.c
parentf689c3bd615386cf4c5238d1b4de1aaf4b58ce69 (diff)
parentc3ce9d2f22c72aa484146a24d87be98d1a29ab9f (diff)
downloadmediapointer-dvb-s2-9840199e825a71000f4d87e61380867fe3dc7f80.tar.gz
mediapointer-dvb-s2-9840199e825a71000f4d87e61380867fe3dc7f80.tar.bz2
merge: http://linuxtv.org/hg/~hgoede/libv4l
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/firewire/firedtv-avc.c')
-rw-r--r--linux/drivers/media/dvb/firewire/firedtv-avc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/firewire/firedtv-avc.c b/linux/drivers/media/dvb/firewire/firedtv-avc.c
index b55d9ccaf..d8dae2599 100644
--- a/linux/drivers/media/dvb/firewire/firedtv-avc.c
+++ b/linux/drivers/media/dvb/firewire/firedtv-avc.c
@@ -150,15 +150,20 @@ static void debug_fcp(const u8 *data, size_t length)
subunit_type = data[1] >> 3;
subunit_id = data[1] & 7;
op = subunit_type == 0x1e || subunit_id == 5 ? ~0 : data[2];
- printk(KERN_INFO "%ssu=%x.%x l=%d: %-8s - %s\n",
+ printk(KERN_INFO "%ssu=%x.%x l=%zu: %-8s - %s\n",
prefix, subunit_type, subunit_id, length,
debug_fcp_ctype(data[0]),
debug_fcp_opcode(op, data, length));
}
if (avc_debug & AVC_DEBUG_FCP_PAYLOADS)
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 22)
print_hex_dump(KERN_INFO, prefix, DUMP_PREFIX_NONE, 16, 1,
data, length, false);
+#else
+ print_hex_dump(KERN_INFO, prefix, DUMP_PREFIX_NONE, 16, 1,
+ (void *)data, length, false);
+#endif
}
static int __avc_write(struct firedtv *fdtv,