aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index d7b8efe86401..88d119f4b970 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -257,6 +257,7 @@
257#include <scsi/scsicam.h> 257#include <scsi/scsicam.h>
258 258
259#include "scsi.h" 259#include "scsi.h"
260#include <scsi/scsi_dbg.h>
260#include <scsi/scsi_host.h> 261#include <scsi/scsi_host.h>
261#include "aha152x.h" 262#include "aha152x.h"
262 263
@@ -986,7 +987,7 @@ static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct semaphore *sem, int p
986 if (HOSTDATA(shpnt)->debug & debug_queue) { 987 if (HOSTDATA(shpnt)->debug & debug_queue) {
987 printk(INFO_LEAD "queue: %p; cmd_len=%d pieces=%d size=%u cmnd=", 988 printk(INFO_LEAD "queue: %p; cmd_len=%d pieces=%d size=%u cmnd=",
988 CMDINFO(SCpnt), SCpnt, SCpnt->cmd_len, SCpnt->use_sg, SCpnt->request_bufflen); 989 CMDINFO(SCpnt), SCpnt, SCpnt->cmd_len, SCpnt->use_sg, SCpnt->request_bufflen);
989 print_command(SCpnt->cmnd); 990 __scsi_print_command(SCpnt->cmnd);
990 } 991 }
991#endif 992#endif
992 993
@@ -1560,7 +1561,7 @@ static void busfree_run(struct Scsi_Host *shpnt)
1560#if 0 1561#if 0
1561 if(HOSTDATA(shpnt)->debug & debug_eh) { 1562 if(HOSTDATA(shpnt)->debug & debug_eh) {
1562 printk(ERR_LEAD "received sense: ", CMDINFO(DONE_SC)); 1563 printk(ERR_LEAD "received sense: ", CMDINFO(DONE_SC));
1563 print_sense("bh", DONE_SC); 1564 scsi_print_sense("bh", DONE_SC);
1564 } 1565 }
1565#endif 1566#endif
1566 1567
@@ -1846,7 +1847,7 @@ static void msgi_run(struct Scsi_Host *shpnt)
1846#if defined(AHA152X_DEBUG) 1847#if defined(AHA152X_DEBUG)
1847 if (HOSTDATA(shpnt)->debug & debug_msgi) { 1848 if (HOSTDATA(shpnt)->debug & debug_msgi) {
1848 printk(INFO_LEAD "inbound message %02x ", CMDINFO(CURRENT_SC), MSGI(0)); 1849 printk(INFO_LEAD "inbound message %02x ", CMDINFO(CURRENT_SC), MSGI(0));
1849 print_msg(&MSGI(0)); 1850 scsi_print_msg(&MSGI(0));
1850 printk("\n"); 1851 printk("\n");
1851 } 1852 }
1852#endif 1853#endif
@@ -1934,7 +1935,7 @@ static void msgi_run(struct Scsi_Host *shpnt)
1934 break; 1935 break;
1935 1936
1936 printk(INFO_LEAD, CMDINFO(CURRENT_SC)); 1937 printk(INFO_LEAD, CMDINFO(CURRENT_SC));
1937 print_msg(&MSGI(0)); 1938 scsi_print_msg(&MSGI(0));
1938 printk("\n"); 1939 printk("\n");
1939 1940
1940 ticks = (MSGI(3) * 4 + 49) / 50; 1941 ticks = (MSGI(3) * 4 + 49) / 50;
@@ -2032,7 +2033,7 @@ static void msgo_init(struct Scsi_Host *shpnt)
2032 int i; 2033 int i;
2033 2034
2034 printk(DEBUG_LEAD "messages( ", CMDINFO(CURRENT_SC)); 2035 printk(DEBUG_LEAD "messages( ", CMDINFO(CURRENT_SC));
2035 for (i=0; i<MSGOLEN; i+=print_msg(&MSGO(i)), printk(" ")) 2036 for (i=0; i<MSGOLEN; i+=scsi_print_msg(&MSGO(i)), printk(" "))
2036 ; 2037 ;
2037 printk(")\n"); 2038 printk(")\n");
2038 } 2039 }
@@ -2104,7 +2105,7 @@ static void cmd_init(struct Scsi_Host *shpnt)
2104#if defined(AHA152X_DEBUG) 2105#if defined(AHA152X_DEBUG)
2105 if (HOSTDATA(shpnt)->debug & debug_cmd) { 2106 if (HOSTDATA(shpnt)->debug & debug_cmd) {
2106 printk(DEBUG_LEAD "cmd_init: ", CMDINFO(CURRENT_SC)); 2107 printk(DEBUG_LEAD "cmd_init: ", CMDINFO(CURRENT_SC));
2107 print_command(CURRENT_SC->cmnd); 2108 __scsi_print_command(CURRENT_SC->cmnd);
2108 } 2109 }
2109#endif 2110#endif
2110 2111
@@ -2158,7 +2159,7 @@ static void status_run(struct Scsi_Host *shpnt)
2158#if defined(AHA152X_DEBUG) 2159#if defined(AHA152X_DEBUG)
2159 if (HOSTDATA(shpnt)->debug & debug_status) { 2160 if (HOSTDATA(shpnt)->debug & debug_status) {
2160 printk(DEBUG_LEAD "inbound status %02x ", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.Status); 2161 printk(DEBUG_LEAD "inbound status %02x ", CMDINFO(CURRENT_SC), CURRENT_SC->SCp.Status);
2161 print_status(CURRENT_SC->SCp.Status); 2162 scsi_print_status(CURRENT_SC->SCp.Status);
2162 printk("\n"); 2163 printk("\n");
2163 } 2164 }
2164#endif 2165#endif
@@ -2925,7 +2926,7 @@ static void show_command(Scsi_Cmnd *ptr)
2925 printk(KERN_DEBUG "0x%08x: target=%d; lun=%d; cmnd=(", 2926 printk(KERN_DEBUG "0x%08x: target=%d; lun=%d; cmnd=(",
2926 (unsigned int) ptr, ptr->device->id, ptr->device->lun); 2927 (unsigned int) ptr, ptr->device->id, ptr->device->lun);
2927 2928
2928 print_command(ptr->cmnd); 2929 __scsi_print_command(ptr->cmnd);
2929 2930
2930 printk(KERN_DEBUG "); request_bufflen=%d; resid=%d; phase |", 2931 printk(KERN_DEBUG "); request_bufflen=%d; resid=%d; phase |",
2931 ptr->request_bufflen, ptr->resid); 2932 ptr->request_bufflen, ptr->resid);