diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-08-17 13:02:10 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:51:03 -0400 |
commit | 31765d7d3da9bb575f80faecae0b931afa3532c6 (patch) | |
tree | e1dfc6ac620a0d37e6bb3d3d3f48c7e800f945b7 /drivers/scsi/scsi_error.c | |
parent | 7c07d613d22680f1caf2bd9ee49838ec7730b9da (diff) |
[SCSI] Improve error message when offlining a device
The current code prints:
scsi 13:0:4:0: scsi: Device offlined - not ready after error recovery
which is repetitively redundant. This patch changes that message to:
scsi 6:0:6:0: Device offlined - not ready after error recovery
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index c8e351fb816c..c05d020bf926 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -1137,9 +1137,8 @@ static void scsi_eh_offline_sdevs(struct list_head *work_q, | |||
1137 | struct scsi_cmnd *scmd, *next; | 1137 | struct scsi_cmnd *scmd, *next; |
1138 | 1138 | ||
1139 | list_for_each_entry_safe(scmd, next, work_q, eh_entry) { | 1139 | list_for_each_entry_safe(scmd, next, work_q, eh_entry) { |
1140 | sdev_printk(KERN_INFO, scmd->device, | 1140 | sdev_printk(KERN_INFO, scmd->device, "Device offlined - " |
1141 | "scsi: Device offlined - not" | 1141 | "not ready after error recovery\n"); |
1142 | " ready after error recovery\n"); | ||
1143 | scsi_device_set_state(scmd->device, SDEV_OFFLINE); | 1142 | scsi_device_set_state(scmd->device, SDEV_OFFLINE); |
1144 | if (scmd->eh_eflags & SCSI_EH_CANCEL_CMD) { | 1143 | if (scmd->eh_eflags & SCSI_EH_CANCEL_CMD) { |
1145 | /* | 1144 | /* |