diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2016-01-03 00:05:53 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-01-06 21:43:05 -0500 |
commit | dbb6b350695186b340e621f5edf4c31420f9ab23 (patch) | |
tree | 92103239e895bdfc961dd7c3df84ee2218c8be69 /drivers/scsi/NCR5380.h | |
parent | e5c3fddfaa066e440315e713ddf8b60e9ac48cf7 (diff) |
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>
Diffstat (limited to 'drivers/scsi/NCR5380.h')
-rw-r--r-- | drivers/scsi/NCR5380.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index aab360810c43..3cfbd3dd9436 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
@@ -285,6 +285,11 @@ struct NCR5380_hostdata { | |||
285 | do { if ((NDEBUG) & (flg)) \ | 285 | do { if ((NDEBUG) & (flg)) \ |
286 | printk(KERN_DEBUG fmt, ## __VA_ARGS__); } while (0) | 286 | printk(KERN_DEBUG fmt, ## __VA_ARGS__); } while (0) |
287 | 287 | ||
288 | #define dsprintk(flg, host, fmt, ...) \ | ||
289 | do { if ((NDEBUG) & (flg)) \ | ||
290 | shost_printk(KERN_DEBUG, host, fmt, ## __VA_ARGS__); \ | ||
291 | } while (0) | ||
292 | |||
288 | #if NDEBUG | 293 | #if NDEBUG |
289 | #define NCR5380_dprint(flg, arg) \ | 294 | #define NCR5380_dprint(flg, arg) \ |
290 | do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) | 295 | do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) |