patch-pre2.0.12 linux/drivers/scsi/constants.c
Next file: linux/drivers/scsi/hosts.c
Previous file: linux/drivers/scsi/Config.in
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Jun 4 12:56:48 1996
- Orig file:
pre2.0.11/linux/drivers/scsi/constants.c
- Orig date:
Mon May 20 08:21:02 1996
diff -u --recursive --new-file pre2.0.11/linux/drivers/scsi/constants.c linux/drivers/scsi/constants.c
@@ -63,7 +63,7 @@
static const char *group_2_commands[] = {
/* 40-41 */ "Change Definition", "Write Same",
-/* 42-48 */ unknown, unknown, unknown, unknown, unknown, unknown, unknown,
+/* 42-48 */ unknown, "Read TOC", unknown, unknown, unknown, unknown, unknown,
/* 49-4f */ unknown, unknown, unknown, "Log Select", "Log Sense", unknown, unknown,
/* 50-55 */ unknown, unknown, unknown, unknown, unknown, "Mode Select (10)",
/* 56-5b */ unknown, unknown, unknown, unknown, "Mode Sense (10)", unknown,
@@ -101,7 +101,11 @@
printk("%s(0x%02x) ", vendor, opcode);
break;
default:
- printk("%s ",table[opcode & 0x1f]);
+ if (table[opcode & 0x1f] != unknown)
+ printk("%s ",table[opcode & 0x1f]);
+ else
+ printk("%s(0x%02x) ", unknown, opcode);
+ break;
}
}
#else /* CONST & CONST_COMMAND */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this