diff options
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 01950b9d2e6d..b8c1603f99eb 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -1123,6 +1123,17 @@ struct ipr_ucode_image_header { | |||
1123 | #define ipr_res_dbg(ioa_cfg, res, fmt, ...) \ | 1123 | #define ipr_res_dbg(ioa_cfg, res, fmt, ...) \ |
1124 | IPR_DBG_CMD(ipr_res_printk(KERN_INFO, ioa_cfg, res, fmt, ##__VA_ARGS__)) | 1124 | IPR_DBG_CMD(ipr_res_printk(KERN_INFO, ioa_cfg, res, fmt, ##__VA_ARGS__)) |
1125 | 1125 | ||
1126 | #define ipr_phys_res_err(ioa_cfg, res, fmt, ...) \ | ||
1127 | { \ | ||
1128 | if ((res).bus >= IPR_MAX_NUM_BUSES) { \ | ||
1129 | ipr_err(fmt": unknown\n", ##__VA_ARGS__); \ | ||
1130 | } else { \ | ||
1131 | ipr_err(fmt": %d:%d:%d:%d\n", \ | ||
1132 | ##__VA_ARGS__, (ioa_cfg)->host->host_no, \ | ||
1133 | (res).bus, (res).target, (res).lun); \ | ||
1134 | } \ | ||
1135 | } | ||
1136 | |||
1126 | #define ipr_trace ipr_dbg("%s: %s: Line: %d\n",\ | 1137 | #define ipr_trace ipr_dbg("%s: %s: Line: %d\n",\ |
1127 | __FILE__, __FUNCTION__, __LINE__) | 1138 | __FILE__, __FUNCTION__, __LINE__) |
1128 | 1139 | ||