linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Borislav Petkov <bbpetkov@yahoo.de>
Cc: Jeff Garzik <jgarzik@pobox.com>,
	"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: regarding ata_msg_*()
Date: Tue, 27 Jun 2006 12:23:30 +0900	[thread overview]
Message-ID: <44A0A4B2.7010001@gmail.com> (raw)
In-Reply-To: <20060626083459.GA13039@gollum.tnic>

Borislav Petkov wrote:
>> My suggestion is to keep the current (pre-msg_enable) model for the 
>> first conversion and categorize debug messages further after that.  So, 
>> message categories will be...
>>
>> ATA_MSG_ERR
>> ATA_MSG_WARN
>> ATA_MSG_INFO
>> -------------> all above are enabled by default
>> ATA_MSG_DEBUG
>> ATA_MSG_VDEBUG
>>
>> Then, you have 1-to-1 mapping w/ the existing messages.  You can simply 
>> incorporate message enabled tests into ata_*_printk() functions and the 
>> conversion would be trivial.
>>
>> After that's complete, we can diversify ATA_MSG_DEBUG and ATA_MSG_VDEBUG 
>> by separating out chatty ones out.  e.g. you can separate out SG 
>> mapping/unmapping (including padding) debug messages, which produce 
>> massive amount of logs when enabled, into ATA_MSG_SG or something. 
>> After several such separations, debug messages should be quite 
>> manageable && the categories wouldn't be too elaborate.
> 
> Yes, this sounds logical, I like it, it really fits libata more but at the time
> I made that msg classification I kinda wanted to stick closely to Becker's
> initial implementation :). But you're perfectly right, this is the way to go so
> I'll do that after reading what the others have to say. However, as I said
> before, IMHO it would be of higher priority now to convert to this new scheme
> and changing the dbg levels later would be trivial once we got all of libata
> done.

Jeff, what do you think?

Borislav, can you restore configuration messages in ata_dev_configure()? 
  Those messages need to be printed.

Thanks.

-- 
tejun

  reply	other threads:[~2006-06-27  3:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25 12:21 regarding ata_msg_*() Tejun Heo
2006-06-26  7:41 ` Borislav Petkov
2006-06-26  8:00   ` Tejun Heo
2006-06-26  8:34     ` Borislav Petkov
2006-06-27  3:23       ` Tejun Heo [this message]
2006-06-27  4:47     ` Jeff Garzik
2006-06-27  5:03       ` Tejun Heo

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=44A0A4B2.7010001@gmail.com \
    --to=htejun@gmail.com \
    --cc=bbpetkov@yahoo.de \
    --cc=jgarzik@pobox.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).