linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn
@ 2011-11-25 10:02 Petr Uzel
  2011-11-25 10:02 ` [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe Petr Uzel
  2011-11-25 13:10 ` [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Hannes Reinecke
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Uzel @ 2011-11-25 10:02 UTC (permalink / raw)
  To: linux-scsi; +Cc: James E.J. Bottomley, open list

Make the comment and string in printk match the code after commit
7f9a6bc4e9d59e7fcf03ed23f60cd81ca5d80b65.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
---
 drivers/scsi/sd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index fa3a591..c368e88 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -633,7 +633,7 @@ static void sd_unprep_fn(struct request_queue *q, struct request *rq)
 }
 
 /**
- *	sd_init_command - build a scsi (read or write) command from
+ *	sd_prep_fn - build a scsi (read or write) command from
  *	information in the request structure.
  *	@SCpnt: pointer to mid-level's per scsi command structure that
  *	contains request and into which the scsi command is written
@@ -680,7 +680,7 @@ static int sd_prep_fn(struct request_queue *q, struct request *rq)
 	ret = BLKPREP_KILL;
 
 	SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt,
-					"sd_init_command: block=%llu, "
+					"sd_prep_fn: block=%llu, "
 					"count=%d\n",
 					(unsigned long long)block,
 					this_count));
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe
  2011-11-25 10:02 [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Petr Uzel
@ 2011-11-25 10:02 ` Petr Uzel
  2011-11-25 13:10   ` Hannes Reinecke
  2011-11-25 13:10 ` [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Hannes Reinecke
  1 sibling, 1 reply; 4+ messages in thread
From: Petr Uzel @ 2011-11-25 10:02 UTC (permalink / raw)
  To: linux-scsi; +Cc: James E.J. Bottomley, open list

Make the comment and printk string match the code.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
---
 drivers/scsi/sd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index c368e88..4b4233b 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2554,8 +2554,8 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
  *	(e.g. /dev/sda). More precisely it is the block device major 
  *	and minor number that is chosen here.
  *
- *	Assume sd_attach is not re-entrant (for time being)
- *	Also think about sd_attach() and sd_remove() running coincidentally.
+ *	Assume sd_probe is not re-entrant (for time being)
+ *	Also think about sd_probe() and sd_remove() running coincidentally.
  **/
 static int sd_probe(struct device *dev)
 {
@@ -2570,7 +2570,7 @@ static int sd_probe(struct device *dev)
 		goto out;
 
 	SCSI_LOG_HLQUEUE(3, sdev_printk(KERN_INFO, sdp,
-					"sd_attach\n"));
+					"sd_probe\n"));
 
 	error = -ENOMEM;
 	sdkp = kzalloc(sizeof(*sdkp), GFP_KERNEL);
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn
  2011-11-25 10:02 [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Petr Uzel
  2011-11-25 10:02 ` [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe Petr Uzel
@ 2011-11-25 13:10 ` Hannes Reinecke
  1 sibling, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2011-11-25 13:10 UTC (permalink / raw)
  To: Petr Uzel
  Cc: linux-scsi,
	"James E.J. Bottomley" (maintainer:SCSI SUBSYSTEM),
	open list

On 11/25/2011 11:02 AM, Petr Uzel wrote:
> Make the comment and string in printk match the code after commit
> 7f9a6bc4e9d59e7fcf03ed23f60cd81ca5d80b65.
> 
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe
  2011-11-25 10:02 ` [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe Petr Uzel
@ 2011-11-25 13:10   ` Hannes Reinecke
  0 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2011-11-25 13:10 UTC (permalink / raw)
  To: Petr Uzel
  Cc: linux-scsi,
	"James E.J. Bottomley" (maintainer:SCSI SUBSYSTEM),
	open list

On 11/25/2011 11:02 AM, Petr Uzel wrote:
> Make the comment and printk string match the code.
> 
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-25 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-25 10:02 [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Petr Uzel
2011-11-25 10:02 ` [PATCH 2/2] [SCSI] sd: Adapt comment and printk string after renaming sd_attach to sd_probe Petr Uzel
2011-11-25 13:10   ` Hannes Reinecke
2011-11-25 13:10 ` [PATCH 1/2] [SCSI] sd: Adapt comment and printk string after renaming sd_init_command to sd_prep_fn Hannes Reinecke

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).