提交 52a6a1cb 编写于 作者: F Finn Thain 提交者: Christoph Hellwig

scsi/NCR5380: fix dprintk macro usage and definition

There are three implementations of the core NCR5380 driver and three sets
of debugging macro definitions. And all three implementations use the
NCR5380.h header as well.

Two of the definitions of the dprintk macro accept a variable argument list
whereas the third does not. Standardize on the variable argument list.
Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
Acked-by: NSam Creasey <sammy@sammy.net>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 4dde8f7d
此差异已折叠。
...@@ -288,9 +288,9 @@ struct NCR5380_hostdata { ...@@ -288,9 +288,9 @@ struct NCR5380_hostdata {
#ifdef __KERNEL__ #ifdef __KERNEL__
#define dprintk(a,b) do {} while(0) #define dprintk(flg, fmt, args...) do {} while (0)
#define NCR5380_dprint(a,b) do {} while(0) #define NCR5380_dprint(flg, arg) do {} while (0)
#define NCR5380_dprint_phase(a,b) do {} while(0) #define NCR5380_dprint_phase(flg, arg) do {} while (0)
#if defined(AUTOPROBE_IRQ) #if defined(AUTOPROBE_IRQ)
static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible); static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册