From: David Woodhouse <dwmw2@infradead.org>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2 simplifications
Date: Mon, 10 Jan 2005 15:13:10 +0000 [thread overview]
Message-ID: <1105369990.5698.95.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <20050110145154.GC12520@wohnheim.fh-wedel.de>
On Mon, 2005-01-10 at 15:51 +0100, Jörn Engel wrote:
> Exactly. Anything other than functional code makes it hard to read
> and even harder to change. So the chances of introducing bugs are
> much higher. In a way, the debug code is needed because of the debug
> code itself.
>
> Sure, it also serves a real purpose and not having any debug code
> requires programmers that don't cause bugs. So it is a necessary
> evil. The real art is to get by with as little debug code as
> possible, yet have enough data to easily find any problems.
I don't really see how printks make the code harder to read. You can
probably convince your editor to hide them from you automatically if
they really offend you.
I prefer to optimise for the common case -- which is the _user_ not the
developer. The level of verbosity if you enable CONFIG_JFFS2_FS_DEBUG is
high, but it means that I can take a log from a clueless end-user and
see precisely what's going on. I can look at a log from someone who's
having problems, see precisely what's happening, and provide a patch in
reply. While there are certainly some printks which can go, and even
more could be demoted to level 2 from level 1 (which is all that's ever
really useful), I wouldn't want to see it completely stripped of
debugging output. Not unless you want to take over the task of
supporting users ;)
--
dwmw2
next prev parent reply other threads:[~2005-01-10 15:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-08 21:18 jffs2 simplifications Jörn Engel
2005-01-08 21:21 ` David Woodhouse
2005-01-10 14:29 ` Jörn Engel
2005-01-09 12:03 ` Artem B. Bityuckiy
2005-01-10 14:51 ` Jörn Engel
2005-01-10 15:13 ` David Woodhouse [this message]
2005-01-10 15:58 ` Jörn Engel
2005-01-11 12:29 ` Artem B. Bityuckiy
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=1105369990.5698.95.camel@hades.cambridge.redhat.com \
--to=dwmw2@infradead.org \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.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