diff -Naur ivtv-0.2.0-rc3k.orig/driver/ivtv-ioctl.c ivtv-0.2.0-rc3k/driver/ivtv-ioctl.c --- ivtv-0.2.0-rc3k.orig/driver/ivtv-ioctl.c 2005-03-18 23:24:14 +0100 +++ ivtv-0.2.0-rc3k/driver/ivtv-ioctl.c 2005-09-12 08:59:45 +0200 @@ -1494,6 +1494,15 @@ int ivtv_v4l2_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) { + printk("DJW:ivtv_v4l2_ioctl: ivtv_debug=0x%02X\n" ivtv_debug); + if ((IVTV_DEBUG_IOCTL) & ivtv_debug) { + unsigned int dir = cmd >> _IOC_DIRSHIFT & _IOC_DIRMASK; + unsigned int type = cmd >> _IOC_TYPESHIFT & _IOC_TYPEMASK; + unsigned int nr = cmd >> _IOC_NRSHIFT & _IOC_NRMASK; + unsigned int size = cmd >> _IOC_SIZESHIFT & _IOC_SIZEMASK; + printk("ivtv_v4l2_ioctls: cmd=0x%08X, dir=%u, type='%c'', nr=%u, size=%u\n", cmd, dir, type, nr, size); + } + /* Converts old (0.1.9) non-conforming ioctls that were using 'just some values I picked for now'. I hoped this would not be necessary, but too many people were already using existing apps