aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic79xx_osm.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-24 18:04:36 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-10-28 22:04:15 -0400
commit017560fca496f72ed9dd734ffde63ce39dfe0411 (patch)
treee63ae9a28fc179e715eda32f12aaec4ca752651b /drivers/scsi/aic7xxx/aic79xx_osm.c
parent3bf743e7c891d8be8295650b7a6a9b5af083b096 (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/aic79xx_osm.c')
-rw-r--r--drivers/scsi/aic7xxx/aic79xx_osm.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c
index 95c285cc83e4..5e023dca4e52 100644
--- a/drivers/scsi/aic7xxx/aic79xx_osm.c
+++ b/drivers/scsi/aic7xxx/aic79xx_osm.c
@@ -52,6 +52,7 @@ static struct scsi_transport_template *ahd_linux_transport_template = NULL;
52#include <linux/mm.h> /* For fetching system memory size */ 52#include <linux/mm.h> /* For fetching system memory size */
53#include <linux/blkdev.h> /* For block_size() */ 53#include <linux/blkdev.h> /* For block_size() */
54#include <linux/delay.h> /* For ssleep/msleep */ 54#include <linux/delay.h> /* For ssleep/msleep */
55#include <linux/device.h>
55 56
56/* 57/*
57 * Bucket size for counting good commands in between bad ones. 58 * Bucket size for counting good commands in between bad ones.
@@ -565,7 +566,7 @@ ahd_linux_slave_configure(struct scsi_device *sdev)
565 566
566 ahd = *((struct ahd_softc **)sdev->host->hostdata); 567 ahd = *((struct ahd_softc **)sdev->host->hostdata);
567 if (bootverbose) 568 if (bootverbose)
568 printf("%s: Slave Configure %d\n", ahd_name(ahd), sdev->id); 569 sdev_printk(KERN_INFO, sdev, "Slave Configure\n");
569 570
570 ahd_linux_device_queue_depth(sdev); 571 ahd_linux_device_queue_depth(sdev);
571 572
@@ -2067,9 +2068,8 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2067 wait = FALSE; 2068 wait = FALSE;
2068 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; 2069 ahd = *(struct ahd_softc **)cmd->device->host->hostdata;
2069 2070
2070 printf("%s:%d:%d:%d: Attempting to queue a%s message:", 2071 scmd_printk(KERN_INFO, cmd,
2071 ahd_name(ahd), cmd->device->channel, 2072 "Attempting to queue a%s message:",
2072 cmd->device->id, cmd->device->lun,
2073 flag == SCB_ABORT ? "n ABORT" : " TARGET RESET"); 2073 flag == SCB_ABORT ? "n ABORT" : " TARGET RESET");
2074 2074
2075 printf("CDB:"); 2075 printf("CDB:");
@@ -2093,9 +2093,7 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2093 * No target device for this command exists, 2093 * No target device for this command exists,
2094 * so we must not still own the command. 2094 * so we must not still own the command.
2095 */ 2095 */
2096 printf("%s:%d:%d:%d: Is not an active device\n", 2096 scmd_printk(KERN_INFO, cmd, "Is not an active device\n");
2097 ahd_name(ahd), cmd->device->channel, cmd->device->id,
2098 cmd->device->lun);
2099 retval = SUCCESS; 2097 retval = SUCCESS;
2100 goto no_cmd; 2098 goto no_cmd;
2101 } 2099 }
@@ -2121,9 +2119,7 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2121 } 2119 }
2122 2120
2123 if (pending_scb == NULL) { 2121 if (pending_scb == NULL) {
2124 printf("%s:%d:%d:%d: Command not found\n", 2122 scmd_printk(KERN_INFO, cmd, "Command not found\n");
2125 ahd_name(ahd), cmd->device->channel, cmd->device->id,
2126 cmd->device->lun);
2127 goto no_cmd; 2123 goto no_cmd;
2128 } 2124 }
2129 2125
@@ -2146,9 +2142,7 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2146 paused = TRUE; 2142 paused = TRUE;
2147 2143
2148 if ((pending_scb->flags & SCB_ACTIVE) == 0) { 2144 if ((pending_scb->flags & SCB_ACTIVE) == 0) {
2149 printf("%s:%d:%d:%d: Command already completed\n", 2145 scmd_printk(KERN_INFO, cmd, "Command already completed\n");
2150 ahd_name(ahd), cmd->device->channel, cmd->device->id,
2151 cmd->device->lun);
2152 goto no_cmd; 2146 goto no_cmd;
2153 } 2147 }
2154 2148
@@ -2214,9 +2208,7 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2214 pending_scb->flags |= SCB_RECOVERY_SCB|flag; 2208 pending_scb->flags |= SCB_RECOVERY_SCB|flag;
2215 ahd_outb(ahd, MSG_OUT, HOST_MSG); 2209 ahd_outb(ahd, MSG_OUT, HOST_MSG);
2216 ahd_outb(ahd, SCSISIGO, last_phase|ATNO); 2210 ahd_outb(ahd, SCSISIGO, last_phase|ATNO);
2217 printf("%s:%d:%d:%d: Device is active, asserting ATN\n", 2211 scmd_printk(KERN_INFO, cmd, "Device is active, asserting ATN\n");
2218 ahd_name(ahd), cmd->device->channel,
2219 cmd->device->id, cmd->device->lun);
2220 wait = TRUE; 2212 wait = TRUE;
2221 } else if (disconnected) { 2213 } else if (disconnected) {
2222 2214
@@ -2277,9 +2269,7 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
2277 printf("Device is disconnected, re-queuing SCB\n"); 2269 printf("Device is disconnected, re-queuing SCB\n");
2278 wait = TRUE; 2270 wait = TRUE;
2279 } else { 2271 } else {
2280 printf("%s:%d:%d:%d: Unable to deliver message\n", 2272 scmd_printk(KERN_INFO, cmd, "Unable to deliver message\n");
2281 ahd_name(ahd), cmd->device->channel,
2282 cmd->device->id, cmd->device->lun);
2283 retval = FAILED; 2273 retval = FAILED;
2284 goto done; 2274 goto done;
2285 } 2275 }