From: Vyacheslav Dubeyko <slava@dubeyko.com>
To: Mike Fleetwood <mike.fleetwood@googlemail.com>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] hfsplus: fix FS driver name in printks
Date: Tue, 29 Jan 2013 14:25:11 +0400 [thread overview]
Message-ID: <1359455111.2868.63.camel@slavad-ubuntu> (raw)
In-Reply-To: <20130129092201.GA453@gmail.com>
On Tue, 2013-01-29 at 09:22 +0000, Mike Fleetwood wrote:
> On Tue, Jan 29, 2013 at 09:49:25AM +0400, Vyacheslav Dubeyko wrote:
> > On Mon, 2013-01-28 at 20:23 +0000, Mike Fleetwood wrote:
> > > Correct the name of the hfsplus FS driver as used in printk calls.
> > > "hfs:" -> "hfsplus:".
> > >
> > > Signed-off-by: Mike Fleetwood <mike.fleetwood@googlemail.com>
> > > ---
> > >
> > > Hi,
> > >
> > > Is there a current reason why the hfsplus FS driver uses "hfs:" almost
> > > exclusively rather than "hfsplus:" as its name in printk calls?
> >
> > There are as minimum two reason for leaving "hfs:" prefix in peace: (1)
> > historical - it is like code style of "old" library; (2) the prefix
> > "hfs:" is shorter - so, it gives opportunity to make more descriptive
> > comments by means of one line under 80 symbols kernel code style
> > requirement.
> >
> > By the way, did you check your patch by scripts/checkpatch.pl script?
> >
> > Moreover, there are hfsplus driver's patches in linux-next that uses
> > "hfs:" prefix.
> >
> > I doubt that this patch can improve hfsplus driver quality. It looks
> > like changes in many places without changing anything in essence.
> >
> > With the best regards,
> > Vyacheslav Dubeyko.
> >
>
> In terms of line length I was applying the exception in the CodingStyle
> which says "never break user-visible strings such as printk messages,
> because that breaks the ability to grep for them." to allow lines be
> longer than 80 characters.
>
> I did use checkpatch.pl. It reported this for every printk:
> WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
So, if we begin to modify error messages in the hfsplus driver then,
maybe, it makes sense to exchange the printk() on pr_err() and to
prepare define for "hfsplus:" prefix? Then, we make checkpatch.pl
completely happy.
> After seeing that ext2/3/4, btrfs and xfs use printk and not any of
> those functions I followed the majority. It also reported a couple of:
> WARNING: line over 80 characters
> I was applying the above exception.
>
> Absoutely this patch doesn't fix any faults and is not for 3.8.0-rc* but
> for linux next. I just though that it would be useful for users to be
> told the name of the FS driver generating the message rather than a
> different one.
>
Anyway, I think that changing "hfs:" on "hfsplus:" is not important.
> Would an equlivant patch be accepted for linux-next?
> How do I send it to linux-next?
>
I mean git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
when I am talking about linux-next. So, you can prepare patches are
based on this repository.
With the best regards,
Vyacheslav Dubeyko.
> Thank you Vyacheslav for reviewing my patch,
> Mike
>
> >
> > > Assuming not here's a patch to fix.
> > >
> > > (Any code which may have been copied between hfs and hfsplus has since
> > > diverged significantly).
> > >
> > > Thanks,
> > > Mike
> > >
next prev parent reply other threads:[~2013-01-29 10:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 20:23 [PATCH] hfsplus: fix FS driver name in printks Mike Fleetwood
2013-01-29 5:49 ` Vyacheslav Dubeyko
2013-01-29 9:22 ` Mike Fleetwood
2013-01-29 10:25 ` Vyacheslav Dubeyko [this message]
2013-01-29 15:00 ` Hin-Tak Leung
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=1359455111.2868.63.camel@slavad-ubuntu \
--to=slava@dubeyko.com \
--cc=htl10@users.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mike.fleetwood@googlemail.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).