Ok, if I set debug as follows vfd->debug =V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG; I can see the debug trace in dmesg, but this doesn't seem like the correct way to set the flags. What is the typical method of setting these debug flags? Is this the best place to ask these type of questions? Thanks, David On 11/30/2011 7:46 PM, damateem wrote: > There are a fair number of debug print statements in the V4L2 code. How > do I turn those on? > > For instance, I'd like the following code to print > > if ((vfd->debug & V4L2_DEBUG_IOCTL) && > !(vfd->debug & V4L2_DEBUG_IOCTL_ARG)) { > v4l_print_ioctl(vfd->name, cmd); > printk(KERN_CONT "\n"); > } > > so I can trace the IOCTL calls. > > Thanks, > David -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html