From: Antti Palosaari <crope@iki.fi>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
Olli Salonen <olli.salonen@iki.fi>
Cc: linux-media@vger.kernel.org, nibble.max@gmail.com
Subject: Re: [PATCH 2/4] dvbsky: added debug logging
Date: Mon, 03 Nov 2014 15:39:49 +0200 [thread overview]
Message-ID: <545785A5.9000804@iki.fi> (raw)
In-Reply-To: <20141103110445.318b50c4@recife.lan>
On 11/03/2014 03:04 PM, Mauro Carvalho Chehab wrote:
> Em Sun, 12 Oct 2014 13:03:09 +0300
> Olli Salonen <olli.salonen@iki.fi> escreveu:
>
>> Added debug logging using dev_dgb.
>> @@ -396,6 +415,8 @@ static void dvbsky_exit(struct dvb_usb_device *d)
>> struct dvbsky_state *state = d_to_priv(d);
>> struct i2c_client *client;
>>
>> + dev_dbg(&d->udev->dev, "\n");
>> +
>
> No need to add new debug macros that only prints the called functions,
> as you could get it too with Kernel tracing.
ftrace [1] is a bit heavy tool for module debugs like that. There is
many different debugs for different use cases. When you add debugs to
module those are usually used just to see how your module works and
functions are called. Same is for V4L core debugs too; enable those and
you will get tons of unneeded/useless information which makes totally
hard to develop driver in question. When you add debugs to driver
module, those are generally useful for cases where you want develop that
certain driver module and not see zillion lines of unrelated debug data.
Also, I think that kind of debug log will not generate any binary code
when debug options are not enabled by Kconfig, so it is not even reason
for optimization.
[1] https://www.kernel.org/doc/Documentation/trace/ftrace.txt
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2014-11-03 13:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-12 10:03 [PATCH 1/4] dvbsky: don't print MAC address from read_mac_address Olli Salonen
2014-10-12 10:03 ` [PATCH 2/4] dvbsky: added debug logging Olli Salonen
2014-11-03 13:04 ` Mauro Carvalho Chehab
2014-11-03 13:39 ` Antti Palosaari [this message]
2014-10-12 10:03 ` [PATCH 3/4] dvbsky: clean logging Olli Salonen
2014-10-12 10:03 ` [PATCH 4/4] dvbsky: add option to disable IR receiver Olli Salonen
2014-10-12 10:12 ` Antti Palosaari
2014-10-12 10:52 ` Olli Salonen
2014-10-12 11:31 ` [PATCHv2 " Olli Salonen
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=545785A5.9000804@iki.fi \
--to=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=nibble.max@gmail.com \
--cc=olli.salonen@iki.fi \
/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).