OSDN Git Service

scsi/NCR5380: use NCR5380_dprint() instead of NCR5380_print()
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 18 Mar 2014 00:42:16 +0000 (11:42 +1100)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 May 2014 10:05:37 +0000 (12:05 +0200)
Only the NCR5380_dprint() macro should invoke the NCR5380_print() function.
That's why NCR5380.c only defines the function #if NDEBUG. Use the standard
macro.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Sam Creasey <sammy@sammy.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/sun3_scsi.c

index ab722a1..020d38a 100644 (file)
@@ -78,8 +78,6 @@
 #include <scsi/scsi_host.h>
 #include "sun3_scsi.h"
 
-static void NCR5380_print(struct Scsi_Host *instance);
-
 /* #define OLDDMA */
 
 #define USE_WRAPPER
@@ -464,7 +462,7 @@ static unsigned long sun3scsi_dma_setup(void *data, unsigned long count, int wri
                printk("scsi%d: fifo_mismatch %04x not %04x\n",
                       default_instance->host_no, dregs->fifo_count,
                       (unsigned int) count);
-               NCR5380_print(default_instance);
+               NCR5380_dprint(NDEBUG_DMA, default_instance);
        }
 
        /* setup udc */