patch-2.4.23 linux-2.4.23/drivers/scsi/pcmcia/nsp_debug.c
Next file: linux-2.4.23/drivers/scsi/pcmcia/nsp_io.h
Previous file: linux-2.4.23/drivers/scsi/pcmcia/nsp_cs.h
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/scsi/pcmcia/nsp_debug.c
- Orig date:
2001-10-11 09:04:57.000000000 -0700
diff -urN linux-2.4.22/drivers/scsi/pcmcia/nsp_debug.c linux-2.4.23/drivers/scsi/pcmcia/nsp_debug.c
@@ -6,7 +6,7 @@
the GNU General Public License.
=========================================================================*/
-/* $Id: nsp_debug.c,v 1.8 2001/09/07 04:32:28 elca Exp $ */
+/* $Id: nsp_debug.c,v 1.3 2003/07/26 14:21:09 elca Exp $ */
/*
* Show the command data of a command
@@ -87,14 +87,21 @@
static void print_commandk (unsigned char *command)
{
- int i,s;
+ int i, s;
printk(KERN_DEBUG);
print_opcodek(command[0]);
/*printk(KERN_DEBUG __FUNCTION__ " ");*/
- for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) {
+ if ((command[0] >> 5) == 6 ||
+ (command[0] >> 5) == 7 ) {
+ s = 12; /* vender specific */
+ } else {
+ s = COMMAND_SIZE(command[0]);
+ }
+ for ( i = 1; i < s; ++i) {
printk("%02x ", command[i]);
}
- switch (COMMAND_SIZE(command[0])) {
+
+ switch (s) {
case 6:
printk("LBA=%d len=%d",
(((unsigned int)command[1] & 0x0f) << 16) |
@@ -131,9 +138,9 @@
printk("\n");
}
-static void show_command(Scsi_Cmnd *ptr)
+static void show_command(Scsi_Cmnd *SCpnt)
{
- print_commandk(ptr->cmnd);
+ print_commandk(SCpnt->cmnd);
}
static void show_phase(Scsi_Cmnd *SCpnt)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)