tree ae86a60cf83c3d897f9488e90fca4b36cd545a1a
parent b6651129cc27d56a9cbefcb5f713cea7706fd6b7
author <[EMAIL PROTECTED]> Mon, 04 Apr 2005 00:53:59 -0500
committer James Bottomley <[EMAIL PROTECTED]> Mon, 18 Apr 2005 22:32:20 -0500

[PATCH] remove outdated print_* functions

We have the scsi_print_* functions in the proper namespace for a long
time now and there weren't a lot users left.

Signed-off-by: James Bottomley <[EMAIL PROTECTED]>

 scsi/53c7xx.c        |   23 ++++++++++++-----------
 scsi/NCR5380.c       |    9 +++++----
 scsi/aha152x.c       |   17 +++++++++--------
 scsi/arm/acornscsi.c |    9 +++++----
 scsi/arm/fas216.c    |    9 +++++----
 scsi/arm/scsi.h      |    2 +-
 scsi/atari_NCR5380.c |    9 +++++----
 scsi/constants.c     |    2 +-
 scsi/scsi.c          |    2 +-
 scsi/scsi.h          |   37 -------------------------------------
 scsi/seagate.c       |    5 +++--
 scsi/sg.c            |    3 ++-
 scsi/sun3_NCR5380.c  |    9 +++++----
 13 files changed, 54 insertions(+), 82 deletions(-)

Index: drivers/scsi/53c7xx.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/53c7xx.c  
(mode:100644 sha1:8ead55f75d02e92af906b3891128b64cc7094b39)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/53c7xx.c  
(mode:100644 sha1:2341d27ceed7359991733e564eebba5c6a039f08)
@@ -280,6 +280,7 @@
 #endif
 
 #include "scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include "53c7xx.h"
 #include <linux/stat.h>
@@ -1721,9 +1722,9 @@
                printk ("scsi%d : test 2 INQUIRY to target %d, lun 0 : %s\n",
                    host->host_no, i, data + 8);
                printk ("scsi%d : status ", host->host_no);
-               print_status (status);
+               scsi_print_status (status);
                printk ("\nscsi%d : message ", host->host_no);
-               print_msg (&msg);
+               scsi_print_msg (&msg);
                printk ("\n");
            } else if (hostdata->test_completed == 3) {
                printk("scsi%d : test 2 no connection with target %d\n",
@@ -2312,7 +2313,7 @@
            printk ("scsi%d : received message", host->host_no);
            if (c) 
                printk (" from target %d lun %d ", c->device->id, 
c->device->lun);
-           print_msg ((unsigned char *) hostdata->msg_buf);
+           scsi_print_msg ((unsigned char *) hostdata->msg_buf);
            printk("\n");
        }
        
@@ -3204,7 +3205,7 @@
     case WRITE_10:
 #if 0
        printk("scsi%d : command is ", host->host_no);
-       print_command(cmd->cmnd);
+       __scsi_print_command(cmd->cmnd);
 #endif
 #if 0
        printk ("scsi%d : %d scatter/gather segments\n", host->host_no,
@@ -3232,7 +3233,7 @@
      */
     default:
        printk("scsi%d : datain+dataout for command ", host->host_no);
-       print_command(cmd->cmnd);
+       __scsi_print_command(cmd->cmnd);
        datain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3;
     }
 
@@ -3938,7 +3939,7 @@
            if (cmd) {
                printk("scsi%d : target %d, lun %d, command ",
                    host->host_no, cmd->cmd->device->id, cmd->cmd->device->lun);
-               print_command (cmd->cmd->cmnd);
+               __scsi_print_command (cmd->cmd->cmnd);
                printk("scsi%d : dsp = 0x%x (virt 0x%p)\n", host->host_no,
                    NCR53c7x0_read32(DSP_REG),
                    bus_to_virt(NCR53c7x0_read32(DSP_REG)));
@@ -4208,7 +4209,7 @@
        if (hostdata->options & OPTION_DEBUG_INTR) {
            printk ("scsi%d : command complete : pid %lu, id %d,lun %d result 
0x%x ", 
                  host->host_no, tmp->pid, tmp->device->id, tmp->device->lun, 
tmp->result);
-           print_command (tmp->cmnd);
+           __scsi_print_command (tmp->cmnd);
        }
 
        tmp->scsi_done(tmp);
@@ -4297,7 +4298,7 @@
                printk("scsi%d : interrupt for pid %lu, id %d, lun %d ", 
                    host->host_no, cmd->cmd->pid, (int) cmd->cmd->device->id,
                    (int) cmd->cmd->device->lun);
-               print_command (cmd->cmd->cmnd);
+               __scsi_print_command (cmd->cmd->cmnd);
            } else {
                printk("scsi%d : no active command\n", host->host_no);
            }
@@ -5539,7 +5540,7 @@
            i > 0 && !check_address ((unsigned long) ptr, 1);
            ptr += len, i -= len) {
            printk("               ");
-           len = print_msg (ptr);
+           len = scsi_print_msg (ptr);
            printk("\n");
            if (!len)
                break;
@@ -5554,7 +5555,7 @@
     if (cmd) {
        printk("               result = 0x%x, target = %d, lun = %d, cmd = ",
            cmd->result, cmd->device->id, cmd->device->lun);
-       print_command(cmd->cmnd);
+       __scsi_print_command(cmd->cmnd);
     } else
        printk("\n");
     printk("        + %d : dsa_next = 0x%x\n", hostdata->dsa_next,
@@ -6028,7 +6029,7 @@
                    virt_to_bus(event.dsa), event.dsa);
            if (event.pid != -1) {
                printk ("         event for pid %ld ", event.pid);
-               print_command (event.cmnd);
+               __scsi_print_command (event.cmnd);
            }
        }
     }
Index: drivers/scsi/NCR5380.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/NCR5380.c  
(mode:100644 sha1:5e71a0beafca9cb1e8857f53af68773510e771d1)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/NCR5380.c  
(mode:100644 sha1:770fa841e389e9e60981a918957a160d84f4a1b1)
@@ -86,6 +86,7 @@
  * 5.  Test linked command handling code after Eric is ready with 
  *      the high level code.
  */
+#include <scsi/scsi_dbg.h>
 
 #if (NDEBUG & NDEBUG_LISTS)
 #define LIST(x,y) {printk("LINE:%d   Adding %p to %p\n", __LINE__, (void*)(x), 
(void*)(y)); if ((x)==(y)) udelay(5); }
@@ -2371,7 +2372,7 @@
  * 3..length+1  arguments
  *
  * Start the extended message buffer with the EXTENDED_MESSAGE
- * byte, since print_msg() wants the whole thing.  
+ * byte, since scsi_print_msg() wants the whole thing.  
  */
                                        extended_msg[0] = EXTENDED_MESSAGE;
                                        /* Accept first byte by clearing ACK */
@@ -2418,7 +2419,7 @@
                                default:
                                        if (!tmp) {
                                                printk("scsi%d: rejecting 
message ", instance->host_no);
-                                               print_msg(extended_msg);
+                                               scsi_print_msg(extended_msg);
                                                printk("\n");
                                        } else if (tmp != EXTENDED_MESSAGE)
                                                printk("scsi%d: rejecting 
unknown message %02x from target %d, lun %d\n", instance->host_no, tmp, 
cmd->device->id, cmd->device->lun);
@@ -2552,7 +2553,7 @@
 
        if (!(msg[0] & 0x80)) {
                printk(KERN_ERR "scsi%d : expecting IDENTIFY message, got ", 
instance->host_no);
-               print_msg(msg);
+               scsi_print_msg(msg);
                abort = 1;
        } else {
                /* Accept message by clearing ACK */
@@ -2677,7 +2678,7 @@
        Scsi_Cmnd *tmp, **prev;
        
        printk(KERN_WARNING "scsi%d : aborting command\n", instance->host_no);
-       print_Scsi_Cmnd(cmd);
+       scsi_print_command(cmd);
 
        NCR5380_print_status(instance);
 
Index: drivers/scsi/aha152x.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/aha152x.c  
(mode:100644 sha1:d7b8efe864010f57de718bae1e086fac756999d2)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/aha152x.c  
(mode:100644 sha1:88d119f4b97070d221a9f496625f676401d70401)
@@ -257,6 +257,7 @@
 #include <scsi/scsicam.h>
 
 #include "scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include "aha152x.h"
 
@@ -986,7 +987,7 @@
        if (HOSTDATA(shpnt)->debug & debug_queue) {
                printk(INFO_LEAD "queue: %p; cmd_len=%d pieces=%d size=%u 
cmnd=",
                       CMDINFO(SCpnt), SCpnt, SCpnt->cmd_len, SCpnt->use_sg, 
SCpnt->request_bufflen);
-               print_command(SCpnt->cmnd);
+               __scsi_print_command(SCpnt->cmnd);
        }
 #endif
 
@@ -1560,7 +1561,7 @@
 #if 0
                        if(HOSTDATA(shpnt)->debug & debug_eh) {
                                printk(ERR_LEAD "received sense: ", 
CMDINFO(DONE_SC));
-                               print_sense("bh", DONE_SC);
+                               scsi_print_sense("bh", DONE_SC);
                        }
 #endif
 
@@ -1846,7 +1847,7 @@
 #if defined(AHA152X_DEBUG)
                if (HOSTDATA(shpnt)->debug & debug_msgi) {
                        printk(INFO_LEAD "inbound message %02x ", 
CMDINFO(CURRENT_SC), MSGI(0));
-                       print_msg(&MSGI(0));
+                       scsi_print_msg(&MSGI(0));
                        printk("\n");
                }
 #endif
@@ -1934,7 +1935,7 @@
                                                break;
 
                                        printk(INFO_LEAD, CMDINFO(CURRENT_SC));
-                                       print_msg(&MSGI(0));
+                                       scsi_print_msg(&MSGI(0));
                                        printk("\n");
 
                                        ticks = (MSGI(3) * 4 + 49) / 50;
@@ -2032,7 +2033,7 @@
                int i;
 
                printk(DEBUG_LEAD "messages( ", CMDINFO(CURRENT_SC));
-               for (i=0; i<MSGOLEN; i+=print_msg(&MSGO(i)), printk(" "))
+               for (i=0; i<MSGOLEN; i+=scsi_print_msg(&MSGO(i)), printk(" "))
                        ;
                printk(")\n");
        }
@@ -2104,7 +2105,7 @@
 #if defined(AHA152X_DEBUG)
        if (HOSTDATA(shpnt)->debug & debug_cmd) {
                printk(DEBUG_LEAD "cmd_init: ", CMDINFO(CURRENT_SC));
-               print_command(CURRENT_SC->cmnd);
+               __scsi_print_command(CURRENT_SC->cmnd);
        }
 #endif
 
@@ -2158,7 +2159,7 @@
 #if defined(AHA152X_DEBUG)
        if (HOSTDATA(shpnt)->debug & debug_status) {
                printk(DEBUG_LEAD "inbound status %02x ", CMDINFO(CURRENT_SC), 
CURRENT_SC->SCp.Status);
-               print_status(CURRENT_SC->SCp.Status);
+               scsi_print_status(CURRENT_SC->SCp.Status);
                printk("\n");
        }
 #endif
@@ -2925,7 +2926,7 @@
        printk(KERN_DEBUG "0x%08x: target=%d; lun=%d; cmnd=(",
               (unsigned int) ptr, ptr->device->id, ptr->device->lun);
 
-       print_command(ptr->cmnd);
+       __scsi_print_command(ptr->cmnd);
 
        printk(KERN_DEBUG "); request_bufflen=%d; resid=%d; phase |",
               ptr->request_bufflen, ptr->resid);
Index: drivers/scsi/arm/acornscsi.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/arm/acornscsi.c  
(mode:100644 sha1:24dd0b890dd2069d38db05ff778b6e9990836de9)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/arm/acornscsi.c  
(mode:100644 sha1:be2caecbbdd9f99a2ddbf7020f7bf76dbff988ff)
@@ -150,6 +150,7 @@
 #include <asm/ecard.h>
 
 #include "../scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include "acornscsi.h"
 #include "msgqueue.h"
@@ -866,7 +867,7 @@
                    default:
                        printk(KERN_ERR "scsi%d.H: incomplete data transfer 
detected: result=%08X command=",
                                host->host->host_no, SCpnt->result);
-                       print_command(SCpnt->cmnd);
+                       __scsi_print_command(SCpnt->cmnd);
                        acornscsi_dumpdma(host, "done");
                        acornscsi_dumplog(host, SCpnt->device->id);
                        SCpnt->result &= 0xffff;
@@ -1369,7 +1370,7 @@
 
        host->scsi.last_message = msg->msg[0];
 #if (DEBUG & DEBUG_MESSAGES)
-       print_msg(msg->msg);
+       scsi_print_msg(msg->msg);
 #endif
        break;
 
@@ -1391,7 +1392,7 @@
        while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) {
            unsigned int i;
 #if (DEBUG & DEBUG_MESSAGES)
-           print_msg(msg);
+           scsi_print_msg(msg);
 #endif
            i = 0;
            if (acornscsi_write_pio(host, msg->msg, &i, msg->length, 1000000))
@@ -1487,7 +1488,7 @@
 #if (DEBUG & DEBUG_MESSAGES)
     printk("scsi%d.%c: message in: ",
            host->host->host_no, acornscsi_target(host));
-    print_msg(message);
+    scsi_print_msg(message);
     printk("\n");
 #endif
 
Index: drivers/scsi/arm/fas216.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/arm/fas216.c  
(mode:100644 sha1:5411e850c83366c8bfb6778ef3cad3d6b9559579)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/arm/fas216.c  
(mode:100644 sha1:0a172c1e9f7e6934beb7ddeb316d60919c4dcc5e)
@@ -52,6 +52,7 @@
 #include <asm/ecard.h>
 
 #include "../scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include "fas216.h"
 #include "scsi.h"
@@ -309,7 +310,7 @@
        va_end(args);
 
        printk(" CDB: ");
-       print_command(SCpnt->cmnd);
+       __scsi_print_command(SCpnt->cmnd);
 }
 
 static void
@@ -2081,7 +2082,7 @@
                                info->host->host_no, '0' + SCpnt->device->id,
                                SCpnt->result, info->scsi.SCp.ptr,
                                info->scsi.SCp.this_residual);
-                       print_command(SCpnt->cmnd);
+                       __scsi_print_command(SCpnt->cmnd);
                        SCpnt->result &= ~(255 << 16);
                        SCpnt->result |= DID_BAD_TARGET << 16;
                        goto request_sense;
@@ -2170,7 +2171,7 @@
                       info->host->host_no, '0' + SCpnt->device->id,
                       info->scsi.SCp.ptr, info->scsi.SCp.this_residual);
                info->scsi.SCp.ptr = NULL;
-               print_command(SCpnt->cmnd);
+               __scsi_print_command(SCpnt->cmnd);
        }
 
        /*
@@ -2426,7 +2427,7 @@
        info->stats.aborts += 1;
 
        printk(KERN_WARNING "scsi%d: abort command ", info->host->host_no);
-       print_command(SCpnt->data_cmnd);
+       __scsi_print_command(SCpnt->data_cmnd);
 
        print_debug_list();
        fas216_dumpstate(info);
Index: drivers/scsi/arm/scsi.h
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/arm/scsi.h  
(mode:100644 sha1:2f1b3f4bf954de455ff7bb23c6d93790d0a8f7d5)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/arm/scsi.h  
(mode:100644 sha1:48e1c4d9738bfddc9a3fa0a51fec2c34de456b35)
@@ -108,7 +108,7 @@
 #if 0 //def BELT_AND_BRACES
                printk(KERN_WARNING "scsi%d.%c: zero length buffer passed for "
                       "command ", SCpnt->host->host_no, '0' + SCpnt->target);
-               print_command(SCpnt->cmnd);
+               __scsi_print_command(SCpnt->cmnd);
 #endif
                SCpnt->SCp.ptr = NULL;
        }
Index: drivers/scsi/atari_NCR5380.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/atari_NCR5380.c  
(mode:100644 sha1:5d1e78ebed834064afb8dba16aa69e77a131cd11)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/atari_NCR5380.c  
(mode:100644 sha1:2c12be72c4c6abe0e72048e0b092bd2c6379b9cb)
@@ -73,6 +73,7 @@
  * 1.  Test linked command handling code after Eric is ready with 
  *     the high level code.
  */
+#include <scsi/scsi_dbg.h>
 
 #if (NDEBUG & NDEBUG_LISTS)
 #define LIST(x,y) \
@@ -2354,7 +2355,7 @@
  * 3..length+1 arguments
  *
  * Start the extended message buffer with the EXTENDED_MESSAGE
- * byte, since print_msg() wants the whole thing.  
+ * byte, since scsi_print_msg() wants the whole thing.  
  */
                    extended_msg[0] = EXTENDED_MESSAGE;
                    /* Accept first byte by clearing ACK */
@@ -2407,7 +2408,7 @@
                default:
                    if (!tmp) {
                        printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO);
-                       print_msg (extended_msg);
+                       scsi_print_msg (extended_msg);
                        printk("\n");
                    } else if (tmp != EXTENDED_MESSAGE)
                        printk(KERN_DEBUG "scsi%d: rejecting unknown "
@@ -2540,7 +2541,7 @@
 
     if (!(msg[0] & 0x80)) {
        printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO);
-       print_msg(msg);
+       scsi_print_msg(msg);
        do_abort(instance);
        return;
     }
@@ -2646,7 +2647,7 @@
     unsigned long flags;
 
     printk(KERN_NOTICE "scsi%d: aborting command\n", HOSTNO);
-    print_Scsi_Cmnd (cmd);
+    scsi_print_command(cmd);
 
     NCR5380_print_status (instance);
 
Index: drivers/scsi/constants.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/constants.c  
(mode:100644 sha1:d625fdebe052bd5416c43f4ddbe5079ea4ed2f86)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/constants.c  
(mode:100644 sha1:ec161733a82bc7a8bfa677ef0c23d5eae77255d5)
@@ -372,7 +372,7 @@
 
 /**
  *
- *     print_status - print scsi status description
+ *     scsi_print_status - print scsi status description
  *     @scsi_status: scsi status value
  *
  *     If the status is recognized, the description is printed.
Index: drivers/scsi/scsi.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/scsi.c  (mode:100644 
sha1:2e7ab3ab09932c9a2d74b0f28938c65ef0df5580)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/scsi.c  (mode:100644 
sha1:5dc84669616de6b80255656b7fcda768268e9c0a)
@@ -489,7 +489,7 @@
                        scsi_print_command(cmd);
                        if (status_byte(cmd->result) & CHECK_CONDITION) {
                                /*
-                                * XXX The print_sense formatting/prefix
+                                * XXX The scsi_print_sense formatting/prefix
                                 * doesn't match this function.
                                 */
                                scsi_print_sense("", cmd);
Index: drivers/scsi/scsi.h
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/scsi.h  (mode:100644 
sha1:cb6b5fbb7e14f3a8bb328d7b25a2b6ef0e728d23)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/scsi.h  (mode:100644 
sha1:6e7bb068220f469cdaa04076466d457b9510ff0f)
@@ -23,7 +23,6 @@
 #include <linux/config.h>          /* for CONFIG_SCSI_LOGGING */
 
 #include <scsi/scsi_cmnd.h>
-#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_eh.h>
 #include <scsi/scsi_request.h>
@@ -62,42 +61,6 @@
 #define scsi_to_sbus_dma_dir(scsi_dir) ((int)(scsi_dir))
 
 /*
- * Old names for debug prettyprinting functions.
- */
-static inline void print_Scsi_Cmnd(struct scsi_cmnd *cmd)
-{
-       return scsi_print_command(cmd);
-}
-static inline void print_command(unsigned char *cdb)
-{
-       return __scsi_print_command(cdb);
-}
-static inline void print_sense(const char *devclass, struct scsi_cmnd *cmd)
-{
-       return scsi_print_sense(devclass, cmd);
-}
-static inline void print_req_sense(const char *devclass, struct scsi_request 
*req)
-{
-       return scsi_print_req_sense(devclass, req);
-}
-static inline void print_driverbyte(int scsiresult)
-{
-       return scsi_print_driverbyte(scsiresult);
-}
-static inline void print_hostbyte(int scsiresult)
-{
-       return scsi_print_hostbyte(scsiresult);
-}
-static inline void print_status(unsigned char status)
-{
-       return scsi_print_status(status);
-}
-static inline int print_msg(const unsigned char *msg)
-{
-       return scsi_print_msg(msg);
-}
-
-/*
  * This is the crap from the old error handling code.  We have it in a special
  * place so that we can more easily delete it later on.
  */
Index: drivers/scsi/seagate.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/seagate.c  
(mode:100644 sha1:b362ff2811da3753deb03e66859b1253e1d08cfb)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/seagate.c  
(mode:100644 sha1:4c95abb540571dc301ee3c1385f90c0f15b417ee)
@@ -103,6 +103,7 @@
 #include <asm/uaccess.h>
 
 #include "scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include "seagate.h"
 
@@ -746,7 +747,7 @@
 
 #if (DEBUG & PRINT_COMMAND)
        printk("scsi%d : target = %d, command = ", hostno, target);
-       print_command((unsigned char *) cmnd);
+       __scsi_print_command((unsigned char *) cmnd);
 #endif
 
 #if (DEBUG & PHASE_RESELECT)
@@ -1553,7 +1554,7 @@
        printk("\n");
 #endif
        printk("scsi%d : status = ", hostno);
-       print_status(status);
+       scsi_print_status(status);
        printk(" message = %02x\n", message);
 #endif
 
Index: drivers/scsi/sg.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/sg.c  (mode:100644 
sha1:fd72d73bb24407d53082d147591e1281f6a045d3)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/sg.c  (mode:100644 
sha1:cf6b1f0fb124d1af9b80f2815f93d2c34c5dab6a)
@@ -51,6 +51,7 @@
 #include <linux/delay.h>
 
 #include "scsi.h"
+#include <scsi/scsi_dbg.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_driver.h>
 #include <scsi/scsi_ioctl.h>
@@ -1311,7 +1312,7 @@
                if ((sdp->sgdebug > 0) &&
                    ((CHECK_CONDITION == srp->header.masked_status) ||
                     (COMMAND_TERMINATED == srp->header.masked_status)))
-                       print_req_sense("sg_cmd_done", SRpnt);
+                       scsi_print_req_sense("sg_cmd_done", SRpnt);
 
                /* Following if statement is a patch supplied by Eric Youngdale 
*/
                if (driver_byte(SRpnt->sr_result) != 0
Index: drivers/scsi/sun3_NCR5380.c
===================================================================
--- 2b3f664a499ff568cefb5718bfa0b4998a4c43be/drivers/scsi/sun3_NCR5380.c  
(mode:100644 sha1:90811390a37da0fcf5ebe00827f1b36860a66c4a)
+++ ae86a60cf83c3d897f9488e90fca4b36cd545a1a/drivers/scsi/sun3_NCR5380.c  
(mode:100644 sha1:7e19589e71a06c33d6cf94558c390b0b88f14457)
@@ -69,6 +69,7 @@
  *   finally replaced that by the *_PRINTK() macros.
  *
  */
+#include <scsi/scsi_dbg.h>
 
 /*
  * Further development / testing that should be done : 
@@ -2377,7 +2378,7 @@
  * 3..length+1 arguments
  *
  * Start the extended message buffer with the EXTENDED_MESSAGE
- * byte, since print_msg() wants the whole thing.  
+ * byte, since scsi_print_msg() wants the whole thing.  
  */
                    extended_msg[0] = EXTENDED_MESSAGE;
                    /* Accept first byte by clearing ACK */
@@ -2430,7 +2431,7 @@
                default:
                    if (!tmp) {
                        printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO);
-                       print_msg (extended_msg);
+                       scsi_print_msg (extended_msg);
                        printk("\n");
                    } else if (tmp != EXTENDED_MESSAGE)
                        printk(KERN_DEBUG "scsi%d: rejecting unknown "
@@ -2565,7 +2566,7 @@
 
     if (!(msg[0] & 0x80)) {
        printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO);
-       print_msg(msg);
+       scsi_print_msg(msg);
        do_abort(instance);
        return;
     }
@@ -2691,7 +2692,7 @@
     unsigned long flags;
 
     printk(KERN_NOTICE "scsi%d: aborting command\n", HOSTNO);
-    print_Scsi_Cmnd (cmd);
+    scsi_print_command(cmd);
 
     NCR5380_print_status (instance);
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to