From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: Borislav Petkov <bbpetkov@yahoo.de>, linux-ide@vger.kernel.org
Subject: Re: [PATCH 1/n] libata-core.c conversion to new debugging scheme, part 1 (25% done)
Date: Thu, 1 Jun 2006 02:14:33 -0400 [thread overview]
Message-ID: <20060601061433.GC5869@havoc.gtf.org> (raw)
In-Reply-To: <447E849B.8020208@gmail.com>
On Thu, Jun 01, 2006 at 03:09:31PM +0900, Tejun Heo wrote:
> Those ATA_MSG_* constants designates two things..
>
> * message level (debug, info, warning...)
> * message origin (probe, intr...)
>
> although above distinction isn't clear for some constants. libata now
> uses ata_port/dev_printk() macros to print messages and the second
> argument is message level (KERN_INFO, KERN_WARNING...), which carries
> duplicate information as above ATA_* constants. IMHO, it would be
> better to fold the two into one. e.g.
>
> ata_port_printk(ap, ATA_MSG_INFO, "blah blah\n");
>
> instead of
>
> if (ata_msg_info(ap))
> ata_port_printk(ap, KERN_INFO, "blah blah\n");
>
> Some constants probably need to be adjusted a bit though.
Although I agree, it is best to integrate the msg_enable support in
"waves", not doing too much at once, so that we have time to reflect
better on the next step -- just like what we're doing now.
The ata_msg_xxx level and KERN_xxx level are not perfectly mapped, nor
should they be, so the proposed scheme may not work out once we have all
the message levels integrated.
The most important goal to achieve is (a) eliminating the need for users
to rebuild libata to get verbose messages and (b) allowing fine-grained
per-port verbose debugging and tracing. We can address cleanups after
those goals.
Jeff
next prev parent reply other threads:[~2006-06-01 6:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-31 5:46 [PATCH 1/n] libata-core.c conversion to new debugging scheme, part 1 (25% done) Borislav Petkov
2006-05-31 6:39 ` Jeff Garzik
2006-06-01 5:38 ` Borislav Petkov
2006-06-01 6:09 ` Tejun Heo
2006-06-01 6:14 ` Jeff Garzik [this message]
2006-06-02 7:32 ` Borislav Petkov
2006-06-01 6:44 ` Borislav Petkov
2006-06-12 3:11 ` Jeff Garzik
2006-06-12 3:48 ` Jeff Garzik
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=20060601061433.GC5869@havoc.gtf.org \
--to=jeff@garzik.org \
--cc=bbpetkov@yahoo.de \
--cc=htejun@gmail.com \
--cc=linux-ide@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).