aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorbrking@us.ibm.com <brking@us.ibm.com>2005-11-01 18:00:27 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-11-06 14:00:34 -0500
commitfa15b1f6be4764bfeb29b0cf74442ea6dbb2ec9d (patch)
treebb771a9e93dfe50f61616109ccbf37892bef357b /drivers/scsi/ipr.h
parentcfc321397e9e309a8148c18c32ade26ac40be39d (diff)
[SCSI] ipr: Physical resource error logging macro
Adds a macro in the ipr driver for logging a physical device location. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 01950b9d2e6..b8c1603f99e 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