IB/ipath: Print more informative parity error messages
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
committed by
Roland Dreier
parent
6a553af286
commit
8d588f8bb7
@@ -897,4 +897,20 @@ extern struct mutex ipath_mutex;
|
||||
|
||||
#endif /* _IPATH_DEBUGGING */
|
||||
|
||||
/*
|
||||
* this is used for formatting hw error messages...
|
||||
*/
|
||||
struct ipath_hwerror_msgs {
|
||||
u64 mask;
|
||||
const char *msg;
|
||||
};
|
||||
|
||||
#define INFINIPATH_HWE_MSG(a, b) { .mask = INFINIPATH_HWE_##a, .msg = b }
|
||||
|
||||
/* in ipath_intr.c... */
|
||||
void ipath_format_hwerrors(u64 hwerrs,
|
||||
const struct ipath_hwerror_msgs *hwerrmsgs,
|
||||
size_t nhwerrmsgs,
|
||||
char *msg, size_t lmsg);
|
||||
|
||||
#endif /* _IPATH_KERNEL_H */
|
||||
|
Reference in New Issue
Block a user