All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Kashyap Desai <kashyap.desai@avagotech.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Sumit Saxena <sumit.saxena@avagotech.com>,
	Uday Lingala <uday.lingala@avagotech.com>,
	"James E.J. Bottomley" <JBottomley@parallels.com>,
	"PDL,MEGARAIDLINUX" <megaraidlinux.pdl@avagotech.com>,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: megaraid_sas: Prevent future %p disaster
Date: Tue, 10 Feb 2015 08:55:37 -0800	[thread overview]
Message-ID: <1423587337.8339.3.camel@perches.com> (raw)
In-Reply-To: <bb45ec6cfa94612741a2eb355d0de566@mail.gmail.com>

On Tue, 2015-02-10 at 22:16 +0530, Kashyap Desai wrote:
> Acked-by: Kashyap Desai <kashyap.desai@avagotech.com>
> 
> > -----Original Message-----
> > From: Rasmus Villemoes [mailto:linux@rasmusvillemoes.dk]
> > Sent: Friday, February 06, 2015 8:04 PM
[]
> > There is currently no %po format extension, so currently the letters
> "on" are
> > simply skipped and the pointer is printed as expected (while missing the
> word
> > on). However, it is probably only a matter of time before someone comes
> up
> > with a %po extension, at which point this is likely to fail
> spectacularly.

Nice tool Rasmus

> > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c
[]
> > @@ -3105,7 +3105,7 @@ megasas_internal_reset_defer_cmds(struct
> > megasas_instance *instance)
> >  	for (i = 0; i < max_cmd; i++) {
> >  		cmd = instance->cmd_list[i];
> >  		if (cmd->sync_cmd == 1 || cmd->scmd) {
> > -			printk(KERN_NOTICE "megasas: moving
> > cmd[%d]:%p:%d:%p"
> > +			printk(KERN_NOTICE "megasas: moving
> > cmd[%d]:%p:%d:%p "
> >  					"on the defer queue as
> internal\n",
> >  				defer_index, cmd, cmd->sync_cmd, cmd-
> > >scmd);
> >

It'd probably be nicer to coalesce the format.

			printk(KERN_NOTICE "megasas: moving cmd[%d]:%p:%d:%p on the defer queue as internal\n",
				defer_ndex, cmd, cmd->sync, cmd->scmd);

  reply	other threads:[~2015-02-10 16:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06 14:33 [PATCH] scsi: megaraid_sas: Prevent future %p disaster Rasmus Villemoes
2015-02-10 16:46 ` Kashyap Desai
2015-02-10 16:55   ` Joe Perches [this message]
2015-02-10 18:38     ` Joe Perches
2015-05-12 14:04   ` Rasmus Villemoes
2015-05-12 14:04     ` Rasmus Villemoes
2015-05-12 14:52     ` Joe Perches
2015-05-12 15:01       ` Joe Perches
     [not found] <OF651E5409.7FC1198E-ONC1257E49.0034C44E-C1257E49.0034D9A0@de.ibm.com>
2015-05-18 10:05 ` Ursula Braun

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=1423587337.8339.3.camel@perches.com \
    --to=joe@perches.com \
    --cc=JBottomley@parallels.com \
    --cc=kashyap.desai@avagotech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=megaraidlinux.pdl@avagotech.com \
    --cc=sumit.saxena@avagotech.com \
    --cc=uday.lingala@avagotech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.