lkml.org 
[lkml]   [2003]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: [2.6.0-test9] Strange SCSI messages
    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",
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.031 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site