diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-24 18:04:36 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-28 22:04:15 -0400 |
commit | 017560fca496f72ed9dd734ffde63ce39dfe0411 (patch) | |
tree | e63ae9a28fc179e715eda32f12aaec4ca752651b /drivers/scsi/aic7xxx/aic7xxx_osm.c | |
parent | 3bf743e7c891d8be8295650b7a6a9b5af083b096 (diff) |
[SCSI] use sfoo_printk() in drivers
Rejections fixed up and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index 6ee1435d37fa..7074ab95d1cc 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -641,7 +641,7 @@ ahc_linux_slave_configure(struct scsi_device *sdev) | |||
641 | ahc = *((struct ahc_softc **)sdev->host->hostdata); | 641 | ahc = *((struct ahc_softc **)sdev->host->hostdata); |
642 | 642 | ||
643 | if (bootverbose) | 643 | if (bootverbose) |
644 | printf("%s: Slave Configure %d\n", ahc_name(ahc), sdev->id); | 644 | sdev_printk(KERN_INFO, sdev, "Slave Configure\n"); |
645 | 645 | ||
646 | ahc_linux_device_queue_depth(sdev); | 646 | ahc_linux_device_queue_depth(sdev); |
647 | 647 | ||
@@ -2117,9 +2117,7 @@ ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) | |||
2117 | wait = FALSE; | 2117 | wait = FALSE; |
2118 | ahc = *(struct ahc_softc **)cmd->device->host->hostdata; | 2118 | ahc = *(struct ahc_softc **)cmd->device->host->hostdata; |
2119 | 2119 | ||
2120 | printf("%s:%d:%d:%d: Attempting to queue a%s message\n", | 2120 | scmd_printk(KERN_INFO, cmd, "Attempting to queue a%s message\n", |
2121 | ahc_name(ahc), cmd->device->channel, | ||
2122 | cmd->device->id, cmd->device->lun, | ||
2123 | flag == SCB_ABORT ? "n ABORT" : " TARGET RESET"); | 2121 | flag == SCB_ABORT ? "n ABORT" : " TARGET RESET"); |
2124 | 2122 | ||
2125 | printf("CDB:"); | 2123 | printf("CDB:"); |
@@ -2183,9 +2181,7 @@ ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) | |||
2183 | } | 2181 | } |
2184 | 2182 | ||
2185 | if (pending_scb == NULL) { | 2183 | if (pending_scb == NULL) { |
2186 | printf("%s:%d:%d:%d: Command not found\n", | 2184 | scmd_printk(KERN_INFO, cmd, "Command not found\n"); |
2187 | ahc_name(ahc), cmd->device->channel, cmd->device->id, | ||
2188 | cmd->device->lun); | ||
2189 | goto no_cmd; | 2185 | goto no_cmd; |
2190 | } | 2186 | } |
2191 | 2187 | ||
@@ -2207,9 +2203,7 @@ ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) | |||
2207 | paused = TRUE; | 2203 | paused = TRUE; |
2208 | 2204 | ||
2209 | if ((pending_scb->flags & SCB_ACTIVE) == 0) { | 2205 | if ((pending_scb->flags & SCB_ACTIVE) == 0) { |
2210 | printf("%s:%d:%d:%d: Command already completed\n", | 2206 | scmd_printk(KERN_INFO, cmd, "Command already completed\n"); |
2211 | ahc_name(ahc), cmd->device->channel, cmd->device->id, | ||
2212 | cmd->device->lun); | ||
2213 | goto no_cmd; | 2207 | goto no_cmd; |
2214 | } | 2208 | } |
2215 | 2209 | ||
@@ -2276,9 +2270,7 @@ ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) | |||
2276 | pending_scb->flags |= SCB_RECOVERY_SCB|flag; | 2270 | pending_scb->flags |= SCB_RECOVERY_SCB|flag; |
2277 | ahc_outb(ahc, MSG_OUT, HOST_MSG); | 2271 | ahc_outb(ahc, MSG_OUT, HOST_MSG); |
2278 | ahc_outb(ahc, SCSISIGO, last_phase|ATNO); | 2272 | ahc_outb(ahc, SCSISIGO, last_phase|ATNO); |
2279 | printf("%s:%d:%d:%d: Device is active, asserting ATN\n", | 2273 | scmd_printk(KERN_INFO, cmd, "Device is active, asserting ATN\n"); |
2280 | ahc_name(ahc), cmd->device->channel, cmd->device->id, | ||
2281 | cmd->device->lun); | ||
2282 | wait = TRUE; | 2274 | wait = TRUE; |
2283 | } else if (disconnected) { | 2275 | } else if (disconnected) { |
2284 | 2276 | ||
@@ -2344,9 +2336,7 @@ ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) | |||
2344 | printf("Device is disconnected, re-queuing SCB\n"); | 2336 | printf("Device is disconnected, re-queuing SCB\n"); |
2345 | wait = TRUE; | 2337 | wait = TRUE; |
2346 | } else { | 2338 | } else { |
2347 | printf("%s:%d:%d:%d: Unable to deliver message\n", | 2339 | scmd_printk(KERN_INFO, cmd, "Unable to deliver message\n"); |
2348 | ahc_name(ahc), cmd->device->channel, cmd->device->id, | ||
2349 | cmd->device->lun); | ||
2350 | retval = FAILED; | 2340 | retval = FAILED; |
2351 | goto done; | 2341 | goto done; |
2352 | } | 2342 | } |