patch_name:	scsi_advan_260t3.patch
patch_version:	2003-08-10.22:37:15
author:		Randy.Dunlap <rddunlap AT osdl.org>
description:	enable compile with ADVANSYS_DEBUG #defined
product:	Linux
product_versions: linux-260-test3
URL:		_
maintainer:	unknown
diffstat:	=
 drivers/scsi/advansys.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)


diff -Naur ./drivers/scsi/advansys.c~advan ./drivers/scsi/advansys.c
--- ./drivers/scsi/advansys.c~advan	2003-08-08 21:34:08.000000000 -0700
+++ ./drivers/scsi/advansys.c	2003-08-10 22:34:51.000000000 -0700
@@ -826,6 +826,7 @@
 
 /* Enable driver tracing. */
 /* #define ADVANSYS_DEBUG */
+#define ADVANSYS_DEBUG
 
 
 /*
@@ -6360,8 +6361,8 @@
     } else {
 	scsi_adjust_queue_depth(device, 0, device->host->cmd_per_lun);
     }
-    ASC_DBG3(1, "advansys_slave_configure: shp 0x%lx, id %d, depth %d\n",
-            (ulong) shp, device->id, device->queue_depth);
+    ASC_DBG4(1, "advansys_slave_configure: device 0x%lx, boardp 0x%lx, id %d, depth %d\n",
+            (ulong) device, (ulong) boardp, device->id, device->queue_depth);
     return 0;
 }
 
@@ -9352,8 +9353,8 @@
 
     printk("Scsi_Host at addr 0x%lx\n", (ulong) s);
     printk(
-" next 0x%lx, host_busy %u, host_no %d, last_reset %d,\n",
-        (ulong) s->next, s->host_busy, s->host_no,
+" host_busy %u, host_no %d, last_reset %d,\n",
+        s->host_busy, s->host_no,
         (unsigned) s->last_reset);
 
 #if ASC_LINUX_KERNEL24
@@ -9397,8 +9398,8 @@
 
     printk(
 " host 0x%lx, device 0x%lx, target %u, lun %u, channel %u,\n",
-        (ulong) s->host, (ulong) s->device, s->target, s->lun,
-        s->channel);
+        (ulong) s->device->host, (ulong) s->device, s->device->id, s->device->lun,
+        s->device->channel);
 
     asc_prt_hex(" CDB", s->cmnd, s->cmd_len);
 
