diff options
| -rw-r--r-- | drivers/scsi/NCR5380.h | 6 | ||||
| -rw-r--r-- | drivers/scsi/sun3_NCR5380.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index 1541c62ddf5f..c79ddfa6f53c 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
| @@ -295,9 +295,10 @@ struct NCR5380_hostdata { | |||
| 295 | #define NDEBUG (0) | 295 | #define NDEBUG (0) |
| 296 | #endif | 296 | #endif |
| 297 | 297 | ||
| 298 | #define dprintk(flg, fmt, ...) \ | ||
| 299 | do { if ((NDEBUG) & (flg)) pr_debug(fmt, ## __VA_ARGS__); } while (0) | ||
| 300 | |||
| 298 | #if NDEBUG | 301 | #if NDEBUG |
| 299 | #define dprintk(flg, fmt, args...) \ | ||
| 300 | do { if ((NDEBUG) & (flg)) pr_debug(fmt, ## args); } while (0) | ||
| 301 | #define NCR5380_dprint(flg, arg) \ | 302 | #define NCR5380_dprint(flg, arg) \ |
| 302 | do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) | 303 | do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) |
| 303 | #define NCR5380_dprint_phase(flg, arg) \ | 304 | #define NCR5380_dprint_phase(flg, arg) \ |
| @@ -305,7 +306,6 @@ struct NCR5380_hostdata { | |||
| 305 | static void NCR5380_print_phase(struct Scsi_Host *instance); | 306 | static void NCR5380_print_phase(struct Scsi_Host *instance); |
| 306 | static void NCR5380_print(struct Scsi_Host *instance); | 307 | static void NCR5380_print(struct Scsi_Host *instance); |
| 307 | #else | 308 | #else |
| 308 | #define dprintk(flg, fmt, args...) do {} while (0) | ||
| 309 | #define NCR5380_dprint(flg, arg) do {} while (0) | 309 | #define NCR5380_dprint(flg, arg) do {} while (0) |
| 310 | #define NCR5380_dprint_phase(flg, arg) do {} while (0) | 310 | #define NCR5380_dprint_phase(flg, arg) do {} while (0) |
| 311 | #endif | 311 | #endif |
diff --git a/drivers/scsi/sun3_NCR5380.c b/drivers/scsi/sun3_NCR5380.c index 61a2c101b4bc..88220794cc98 100644 --- a/drivers/scsi/sun3_NCR5380.c +++ b/drivers/scsi/sun3_NCR5380.c | |||
| @@ -1006,12 +1006,8 @@ static void NCR5380_main (struct work_struct *bl) | |||
| 1006 | for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, | 1006 | for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, |
| 1007 | prev = NULL; tmp; prev = tmp, tmp = NEXT(tmp) ) { | 1007 | prev = NULL; tmp; prev = tmp, tmp = NEXT(tmp) ) { |
| 1008 | 1008 | ||
| 1009 | #if (NDEBUG & NDEBUG_LISTS) | ||
| 1010 | if (prev != tmp) | 1009 | if (prev != tmp) |
| 1011 | printk("MAIN tmp=%p target=%d busy=%d lun=%d\n", | 1010 | dprintk(NDEBUG_LISTS, "MAIN tmp=%p target=%d busy=%d lun=%d\n", tmp, tmp->device->id, hostdata->busy[tmp->device->id], tmp->device->lun); |
| 1012 | tmp, tmp->target, hostdata->busy[tmp->target], | ||
| 1013 | tmp->lun); | ||
| 1014 | #endif | ||
| 1015 | /* When we find one, remove it from the issue queue. */ | 1011 | /* When we find one, remove it from the issue queue. */ |
| 1016 | /* ++guenther: possible race with Falcon locking */ | 1012 | /* ++guenther: possible race with Falcon locking */ |
| 1017 | if ( | 1013 | if ( |
