--- driver/ivtv-ioctl.c.orig 2006-01-13 15:23:12 +0100 +++ driver/ivtv-ioctl.c 2006-01-13 15:22:43 +0100 @@ -1899,6 +1899,14 @@ struct ivtv *itv = id->itv; int streamtype = id->type; + if ((IVTV_DBGFLG_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; + IVTV_DEBUG_IOCTL("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