mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6.0-test9] Strange SCSI messages
@ 2003-10-26 17:49 Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2003-10-26 17:49 UTC (permalink / raw)
  To: linux-kernel

I see these two errors (issued at the same time) in the kernel log file:

| Info fld=0x440b6b, Current sdsdd: sense key Recovered Error
| Additional sense: Address mark not found for data field

According to the sources, these are SCSI messages (matbe this should be
noted in the message?) -- but what do they mean?

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

* Re: [2.6.0-test9] Strange SCSI messages
@ 2003-10-26 19:33 Andries.Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Andries.Brouwer @ 2003-10-26 19:33 UTC (permalink / raw)
  To: fw, linux-kernel; +Cc: linux-scsi

    From: Florian Weimer <fw@deneb.enyo.de>

    | Info fld=0x440b6b, Current sdsdd: sense key Recovered Error
    | Additional sense: Address mark not found for data field

    According to the sources, these are SCSI messages (matbe this should be
    noted in the message?) -- but what do they mean?

No doubt you are asking something else, but your sdsdd should have been sdd.
That is, these days error printing is a bit broken.

Something like the patch below might help.

Andries


diff -u --recursive --new-file -X /linux/dontdiff a/drivers/scsi/constants.c b/drivers/scsi/constants.c
--- a/drivers/scsi/constants.c	Sun Oct 26 00:00:11 2003
+++ b/drivers/scsi/constants.c	Sun Oct 26 20:11:07 2003
@@ -915,15 +915,15 @@
 
 /* Print sense information */
 static void
-print_sense_internal(const char * devclass, 
-		     const unsigned char * sense_buffer,
+print_sense_internal(const char *devclass, 
+		     const unsigned char *sense_buffer,
 		     struct request *req)
 {
 	int s, sense_class, valid, code, info;
-	const char * error = NULL;
+	const char *error = NULL;
 	unsigned char asc, ascq;
 	const char *sense_txt;
-	char *name = req->rq_disk ? req->rq_disk->disk_name : "?";
+	const char *name = req->rq_disk ? req->rq_disk->disk_name : devclass;
     
 	sense_class = (sense_buffer[0] >> 4) & 0x07;
 	code = sense_buffer[0] & 0xf;
@@ -966,11 +966,9 @@
 
 		sense_txt = scsi_sense_key_string(sense_buffer[2]);
 		if (sense_txt)
-			printk("%s%s: sense key %s\n",
-			       devclass, name, sense_txt);
+			printk("%s: sense key %s\n", name, sense_txt);
 		else
-			printk("%s%s: sense = %2x %2x\n",
-			       devclass, name,
+			printk("%s: sense = %2x %2x\n", name,
 			       sense_buffer[0], sense_buffer[2]);
 
 		asc = ascq = 0;
@@ -993,11 +991,9 @@
 
 		sense_txt = scsi_sense_key_string(sense_buffer[0]);
 		if (sense_txt)
-			printk("%s%s: old sense key %s\n",
-			       devclass, name, sense_txt);
+			printk("%s: old sense key %s\n", name, sense_txt);
 		else
-			printk("%s%s: sense = %2x %2x\n",
-			       devclass, name,
+			printk("%s: sense = %2x %2x\n", name,
 			       sense_buffer[0], sense_buffer[2]);
 
 		printk("Non-extended sense class %d code 0x%0x\n",

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

end of thread, other threads:[~2003-10-26 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-26 17:49 [2.6.0-test9] Strange SCSI messages Florian Weimer
2003-10-26 19:33 Andries.Brouwer

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

all inboxes | Powered by JetHome®