[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>
This commit is contained in:
committed by
James Bottomley
parent
cfc321397e
commit
fa15b1f6be
@@ -1123,6 +1123,17 @@ struct ipr_ucode_image_header {
|
||||
#define ipr_res_dbg(ioa_cfg, res, fmt, ...) \
|
||||
IPR_DBG_CMD(ipr_res_printk(KERN_INFO, ioa_cfg, res, fmt, ##__VA_ARGS__))
|
||||
|
||||
#define ipr_phys_res_err(ioa_cfg, res, fmt, ...) \
|
||||
{ \
|
||||
if ((res).bus >= IPR_MAX_NUM_BUSES) { \
|
||||
ipr_err(fmt": unknown\n", ##__VA_ARGS__); \
|
||||
} else { \
|
||||
ipr_err(fmt": %d:%d:%d:%d\n", \
|
||||
##__VA_ARGS__, (ioa_cfg)->host->host_no, \
|
||||
(res).bus, (res).target, (res).lun); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define ipr_trace ipr_dbg("%s: %s: Line: %d\n",\
|
||||
__FILE__, __FUNCTION__, __LINE__)
|
||||
|
||||
|
Reference in New Issue
Block a user