From: Joe Perches <joe@perches.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
mm-commits@vger.kernel.org, bzolnier@gmail.com,
jens.axboe@oracle.com, marcin.slusarz@gmail.com,
shemminger@vyatta.com
Subject: Re: + drivers-block-floppyc-use-pr_level.patch added to -mm tree
Date: Wed, 27 Jan 2010 06:09:00 -0800 [thread overview]
Message-ID: <1264601340.14552.55.camel@Joe-Laptop.home> (raw)
In-Reply-To: <4B600806.4010003@gmail.com>
On Wed, 2010-01-27 at 10:31 +0100, Jiri Slaby wrote:
> On 01/27/2010 01:37 AM, akpm@linux-foundation.org wrote:
> > @@ -687,9 +687,7 @@ static void __reschedule_timeout(int dri
> > fd_timeout.expires = jiffies + UDP->timeout;
> > add_timer(&fd_timeout);
> > if (UDP->flags & FD_DEBUG) {
> > - DPRINT("reschedule timeout ");
> > - printk(message, marg);
> > - printk("\n");
> > + DPRINT("reschedule timeout %s %d\n", message, marg);
>
> This is wrong.
I disagree.
It does add an always output decimal value to the DPRINT
instead of a mostly mismatched format and argument
printk(message, marg).
Previous single matched output use of message/marg:
- reschedule_timeout(MAXTIMEOUT, "request done %d", uptodate);
+ reschedule_timeout(MAXTIMEOUT, "request done", uptodate);
vs now:
$ grep reschedule_timeout drivers/block/floppy.c
static void __reschedule_timeout(int drive, const char *message, int marg)
static void reschedule_timeout(int drive, const char *message, int marg)
__reschedule_timeout(drive, message, marg);
__reschedule_timeout(drive, "lock fdc", 0);
reschedule_timeout(current_reqD, "floppy start", 0);
reschedule_timeout(MAXTIMEOUT, "do wakeup", 0);
reschedule_timeout(MAXTIMEOUT, "request done", uptodate);
reschedule_timeout(current_reqD, "redo fd request", 0);
reschedule_timeout(MAXTIMEOUT, "floppy init", MAXTIMEOUT);
Arguably, that single use could be something like:
char msg_buf[sizeof("request done ") + 20];
snprintf(msg_buf, sizeof(msg_buf), "request_done %d", uptodate);
reschedule_timeout(MAXTIMEOUT, msg_buf);
(uptodate should be 0, 1 or 2)
with the now unused marg argument removed from
reschedule_timeout and __reschedule_timeout.
next prev parent reply other threads:[~2010-01-27 14:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201001270037.o0R0bN6S032517@imap1.linux-foundation.org>
2010-01-27 9:31 ` Jiri Slaby
2010-01-27 14:09 ` Joe Perches [this message]
2010-01-27 14:21 ` Jiri Slaby
2010-01-27 14:35 ` Joe Perches
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=1264601340.14552.55.camel@Joe-Laptop.home \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=bzolnier@gmail.com \
--cc=jens.axboe@oracle.com \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.slusarz@gmail.com \
--cc=mm-commits@vger.kernel.org \
--cc=shemminger@vyatta.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
all inboxes | Powered by JetHome®