public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] log unhandled scsi error and sense messages via SCSI_LOG
@ 2011-10-07 17:59 Rob Evers
  2011-10-07 18:23 ` James Bottomley
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Evers @ 2011-10-07 17:59 UTC (permalink / raw)
  To: linux-scsi; +Cc: hare, Rob Evers

---
 drivers/scsi/scsi_lib.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index fc3f168..9905e2f 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -920,12 +920,14 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
 			action = ACTION_FAIL;
 			break;
 		default:
-			description = "Unhandled sense code";
+			SCSI_LOG_HLCOMPLETE(1, scmd_printk(KERN_INFO, cmd,
+							   "Unhandled sense code\n"));
 			action = ACTION_FAIL;
 			break;
 		}
 	} else {
-		description = "Unhandled error code";
+		SCSI_LOG_HLCOMPLETE(1, scmd_printk(KERN_INFO, cmd,
+						   "Unhandled error code\n"));
 		action = ACTION_FAIL;
 	}
 
-- 
1.7.4.2


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

end of thread, other threads:[~2011-10-07 22:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 17:59 [PATCH] log unhandled scsi error and sense messages via SCSI_LOG Rob Evers
2011-10-07 18:23 ` James Bottomley
2011-10-07 19:28   ` Mike Christie
2011-10-07 19:35     ` Mike Christie
2011-10-07 22:37       ` Rob Evers
2011-10-07 19:42   ` Rob Evers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox