Skip to contentSkip to conversation

advansys build with ADVANSYS_DEBUG defined

PATCH New Randy.Dunlap 1 participant 1 message Aug 20, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 advansys build with ADVANSYS_DEBUG defined

This patch enables the advansys driver to build when ADVANSYS_DEBUG is #defined.

Please consider applying to 2.6.0-test3.

Thanks,
--
~Randy

patch_name: scsi_advan_260t3.patch
patch_version: 2003-08-10.22:37:15
author: Randy.Dunlap <[email protected]>
description: enable compile with ADVANSYS_DEBUG #defined
product: Linux
product_versions: 260-test3
URL: _
maintainer: unknown
diffstat: =

 drivers/scsi/advansys.c |   13 +++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/scsi/advansys.c renamed from drivers/scsi/advansys.c~advan +6 -6
diff -Naur ./drivers/scsi/advansys.c~advan ./drivers/scsi/advansys.c
@@ -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);