patch-2.0.31 linux/drivers/scsi/scsi_proc.c
Next file: linux/drivers/scsi/scsi_syms.c
Previous file: linux/drivers/scsi/scsi_module.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Aug 11 13:37:24 1997
- Orig file:
v2.0.30/linux/drivers/scsi/scsi_proc.c
- Orig date:
Sat Nov 11 03:11:19 1995
diff -u --recursive --new-file v2.0.30/linux/drivers/scsi/scsi_proc.c linux/drivers/scsi/scsi_proc.c
@@ -239,21 +239,6 @@
return(cmdIndex);
}
-#define MAX_SCSI_DEVICE_CODE 10
-const char *const scsi_dev_types[MAX_SCSI_DEVICE_CODE] =
-{
- "Direct-Access ",
- "Sequential-Access",
- "Printer ",
- "Processor ",
- "WORM ",
- "CD-ROM ",
- "Scanner ",
- "Optical Device ",
- "Medium Changer ",
- "Communications "
-};
-
void proc_print_scsidevice(Scsi_Device *scd, char *buffer, int *size, int len)
{
int x, y = *size;
@@ -285,7 +270,7 @@
y += sprintf(buffer + len + y, " Type: %s ",
scd->type < MAX_SCSI_DEVICE_CODE ?
- scsi_dev_types[(int)scd->type] : "Unknown " );
+ scsi_device_types[(int)scd->type] : "Unknown " );
y += sprintf(buffer + len + y, " ANSI"
" SCSI revision: %02x", (scd->scsi_level < 3)?1:2);
if (scd->scsi_level == 2)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov