public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Evers <revers@redhat.com>
To: linux-scsi@vger.kernel.org
Cc: hare@suse.de, Rob Evers <revers@redhat.com>
Subject: [PATCH] log unhandled scsi error and sense messages via SCSI_LOG
Date: Fri,  7 Oct 2011 13:59:30 -0400	[thread overview]
Message-ID: <1318010370-26976-1-git-send-email-revers@redhat.com> (raw)

---
 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


             reply	other threads:[~2011-10-07 17:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 17:59 Rob Evers [this message]
2011-10-07 18:23 ` [PATCH] log unhandled scsi error and sense messages via SCSI_LOG 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318010370-26976-1-git-send-email-revers@redhat.com \
    --to=revers@redhat.com \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox