From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
Sergei Shtylyov <sshtylyov@ru.mvista.com>,
Krzysztof Halasa <khc@pm.waw.pl>,
Borislav Petkov <petkovbb@gmail.com>
Subject: Re: drivers/ide/ide-core: Convert printk's to pr_<foo> and dev_<foo>
Date: Fri, 22 May 2009 20:22:02 +0200 [thread overview]
Message-ID: <200905222022.03294.bzolnier@gmail.com> (raw)
In-Reply-To: <cover.1242676752.git.joe@perches.com>
On Monday 18 May 2009 22:11:26 Joe Perches wrote:
> Standardize printk's by mostly mechanical conversions of
> printk(KERN_<foo> to pr_<foo>(. The KERN_DEBUG uses are
> not done, deferred until a more standard mechanism exists
>
> Standardize pr_<foo> logging uses of drive->name and hwif->name
> to use dev_<foo>.
Looks fine but please:
* change the order of patches
Converting to pr_ in patch #1 just to convert to dev_ in patch #2 was
fine as an intermediate step but now that we have patch #2 you can:
- apply #1 + #2, revert (ignoring rejects) #1 and generate new #1
- on top of new #1 apply (ignoring rejects) old #1 to obtain new #2
It should be pretty simple/quick to do (especially using quilt)...
* push ">80 chars lines" change to patch #3
TBH this change is "a can of worms" (breaks automatic checking with
checkpatch.pl, creates precedent, makes code more difficult to work
on for some people) so I would prefer that we together try to improve
code areas identified by such patch before considering applying it.
* make sure that this patchset applies to ide-2.6.git/for-next
(or linux-next since it contains the above tree)
PS (answering your question) patch #2 is correct in using hwif->gendev
and not hwif->dev -- the latter points to host's device
Thanks.
Bart
prev parent reply other threads:[~2009-05-22 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 20:11 drivers/ide/ide-core: Convert printk's to pr_<foo> and dev_<foo> Joe Perches
2009-05-18 20:11 ` [PATCH 1/2] drivers/ide/ide-core: Convert printk(KERN_<foo> to pr_<foo>( without KERN_DEBUG Joe Perches
2009-05-18 20:11 ` [PATCH 2/2] drivers/ide/ide-core: Convert pr_<foo> to dev_<foo> Joe Perches
2009-05-22 18:22 ` Bartlomiej Zolnierkiewicz [this message]
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=200905222022.03294.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=joe@perches.com \
--cc=khc@pm.waw.pl \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.com \
--cc=sshtylyov@ru.mvista.com \
/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).