aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arm
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 08:26:48 -0400
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:15:59 -0500
commite04ca9078ef5d32951a68b1e97aef4b059d68fdc (patch)
tree3b30ae743512c95a239596e68a5969aa3fb4a327 /drivers/scsi/arm
parent279c43b30b82c8d509e4222ffdfa8b552a5f2a73 (diff)
fas216: update logging messages
Update logging messages to use dev_printk() variants for correct device annotations. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/arm')
-rw-r--r--drivers/scsi/arm/fas216.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c
index 7fc6fd30593d..cea34633b90a 100644
--- a/drivers/scsi/arm/fas216.c
+++ b/drivers/scsi/arm/fas216.c
@@ -308,8 +308,7 @@ static void fas216_log_command(FAS216_Info *info, int level,
308 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args); 308 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args);
309 va_end(args); 309 va_end(args);
310 310
311 printk(" CDB: "); 311 scsi_print_command(SCpnt);
312 __scsi_print_command(SCpnt->cmnd);
313} 312}
314 313
315static void 314static void
@@ -2079,12 +2078,11 @@ fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result)
2079 break; 2078 break;
2080 2079
2081 default: 2080 default:
2082 printk(KERN_ERR "scsi%d.%c: incomplete data transfer " 2081 scmd_printk(KERN_ERR, SCpnt,
2083 "detected: res=%08X ptr=%p len=%X CDB: ", 2082 "incomplete data transfer detected: res=%08X ptr=%p len=%X\n",
2084 info->host->host_no, '0' + SCpnt->device->id, 2083 SCpnt->result, info->scsi.SCp.ptr,
2085 SCpnt->result, info->scsi.SCp.ptr, 2084 info->scsi.SCp.this_residual);
2086 info->scsi.SCp.this_residual); 2085 scsi_print_command(SCpnt);
2087 __scsi_print_command(SCpnt->cmnd);
2088 set_host_byte(SCpnt, DID_ERROR); 2086 set_host_byte(SCpnt, DID_ERROR);
2089 goto request_sense; 2087 goto request_sense;
2090 } 2088 }
@@ -2157,12 +2155,11 @@ static void fas216_done(FAS216_Info *info, unsigned int result)
2157 * to transfer, we should not have a valid pointer. 2155 * to transfer, we should not have a valid pointer.
2158 */ 2156 */
2159 if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) { 2157 if (info->scsi.SCp.ptr && info->scsi.SCp.this_residual == 0) {
2160 printk("scsi%d.%c: zero bytes left to transfer, but " 2158 scmd_printk(KERN_INFO, SCpnt,
2161 "buffer pointer still valid: ptr=%p len=%08x CDB: ", 2159 "zero bytes left to transfer, but buffer pointer still valid: ptr=%p len=%08x\n",
2162 info->host->host_no, '0' + SCpnt->device->id, 2160 info->scsi.SCp.ptr, info->scsi.SCp.this_residual);
2163 info->scsi.SCp.ptr, info->scsi.SCp.this_residual);
2164 info->scsi.SCp.ptr = NULL; 2161 info->scsi.SCp.ptr = NULL;
2165 __scsi_print_command(SCpnt->cmnd); 2162 scsi_print_command(SCpnt);
2166 } 2163 }
2167 2164
2168 /* 2165 /*
@@ -2663,8 +2660,7 @@ int fas216_eh_host_reset(struct scsi_cmnd *SCpnt)
2663 2660
2664 fas216_checkmagic(info); 2661 fas216_checkmagic(info);
2665 2662
2666 printk("scsi%d.%c: %s: resetting host\n", 2663 fas216_log(info, LOG_ERROR, "resetting host");
2667 info->host->host_no, '0' + SCpnt->device->id, __func__);
2668 2664
2669 /* 2665 /*
2670 * Reset the SCSI chip. 2666 * Reset the SCSI chip.