ncr5380: Remove H_NO macro and introduce dsprintk
Replace all H_NO and some HOSTNO macros (both peculiar to atari_NCR5380.c) with a new dsprintk macro that's more useful and more consistent. The new macro avoids a lot of boilerplate in new code in subsequent patches. Keep NCR5380.c in sync. Remaining HOSTNO macros are removed as side-effects of subsequent patches. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Ondrej Zary <linux@rainbow-software.org> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
此提交包含在:
@@ -285,6 +285,11 @@ struct NCR5380_hostdata {
|
||||
do { if ((NDEBUG) & (flg)) \
|
||||
printk(KERN_DEBUG fmt, ## __VA_ARGS__); } while (0)
|
||||
|
||||
#define dsprintk(flg, host, fmt, ...) \
|
||||
do { if ((NDEBUG) & (flg)) \
|
||||
shost_printk(KERN_DEBUG, host, fmt, ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#if NDEBUG
|
||||
#define NCR5380_dprint(flg, arg) \
|
||||
do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0)
|
||||
|
新增問題並參考
封鎖使用者