staging/rdma/hfi1: Remove spurious error messages
Subsystems (2)
PATCH 1/1 staging/rdma/hfi1: Remove spurious error messages
From: Ignacio Hernandez <[email protected]>
Changed the order in which diagnostics messages are printed, taking into account the cases where the errors are handled in rcv_hdrerr() and no further message is needed to report.
Reviewed-by Mark Debbage <[email protected]>
Reviewed-by Arthur Kepner <[email protected]>
Reviewed-by Mike Marciniszyn <[email protected]>
Signed-off-by Ignacio Hernandez <[email protected]>
Signed-off-by Jubin John <[email protected]>
--- drivers/staging/rdma/hfi1/driver.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/rdma/hfi1/driver.c +13 -13
@@ -1163,20 +1163,20 @@ void handle_eflags(struct hfi1_packet *packet)struct hfi1_ctxtdata *rcd = packet->rcd;u32 rte =rhf_rcv_type_err (packet->rhf); -dd_dev_err (rcd->dd, -"receive context %d: rhf 0x%016llx, errs [ %s%s%s%s%s%s%s%s] rte 0x%x\n" , - rcd->ctxt, packet->rhf, - packet->rhf &RHF_K_HDR_LEN_ERR ?"k_hdr_len " :"" , - packet->rhf &RHF_DC_UNC_ERR ?"dc_unc " :"" , - packet->rhf &RHF_DC_ERR ?"dc " :"" , - packet->rhf &RHF_TID_ERR ?"tid " :"" , - packet->rhf &RHF_LEN_ERR ?"len " :"" , - packet->rhf &RHF_ECC_ERR ?"ecc " :"" , - packet->rhf &RHF_VCRC_ERR ?"vcrc " :"" , - packet->rhf &RHF_ICRC_ERR ?"icrc " :"" , - rte); -rcv_hdrerr (rcd, rcd->ppd, packet); +if (rhf_err_flags (packet->rhf)) +dd_dev_err (rcd->dd, +"receive context %d: rhf 0x%016llx, errs [ %s%s%s%s%s%s%s%s] rte 0x%x\n" , + rcd->ctxt, packet->rhf, + packet->rhf &RHF_K_HDR_LEN_ERR ?"k_hdr_len " :"" , + packet->rhf &RHF_DC_UNC_ERR ?"dc_unc " :"" , + packet->rhf &RHF_DC_ERR ?"dc " :"" , + packet->rhf &RHF_TID_ERR ?"tid " :"" , + packet->rhf &RHF_LEN_ERR ?"len " :"" , + packet->rhf &RHF_ECC_ERR ?"ecc " :"" , + packet->rhf &RHF_VCRC_ERR ?"vcrc " :"" , + packet->rhf &RHF_ICRC_ERR ?"icrc " :"" , + rte); }/*
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html