From: damateem <damateem4@gmail.com>
To: linux-media list <linux-media@vger.kernel.org>
Subject: Re: Debug output
Date: Thu, 01 Dec 2011 14:01:24 -0500 [thread overview]
Message-ID: <4ED7CF04.8050906@gmail.com> (raw)
In-Reply-To: <4ED6CE53.7010806@gmail.com>
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
next prev parent reply other threads:[~2011-12-01 19:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 0:46 Debug output damateem
2011-12-01 19:01 ` damateem [this message]
2011-12-01 19:18 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED7CF04.8050906@gmail.com \
--to=damateem4@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).