Skip to contentSkip to conversation

osm_vendor_ibumad.c: Improve ERR 5430 log message

PATCH New Hal Rosenstock 1 participant 1 message Oct 7, 2013 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_vendor_ibumad.c: Improve ERR 5430 log message

Add in class, method and attribute so have better idea on failure without increasing log verbosity

---

libvendor/osm_vendor_ibumad.c +4 -2
index ee14f5b..19551a5 100644
@@ -1138,8 +1138,10 @@ Resp:
 			     resp_expected ? p_bind->timeout : 0,
 			     p_bind->max_retries)) < 0) {
 		OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5430: "
-			"Send p_madw = %p of size %d TID 0x%" PRIx64 " failed %d (%m)\n",
-			p_madw, sent_mad_size, tid, ret);
+			"Send p_madw = %p of size %d, Class 0x%x, Method 0x%X, "
+			"Attr 0x%X, TID 0x%" PRIx64 " failed %d (%m)\n",
+			p_madw, sent_mad_size, p_mad->mgmt_class,
+			p_mad->method, cl_ntoh16(p_mad->attr_id), tid, ret);
 		if (resp_expected) {
 			get_madw(p_vend, &p_mad->trans_id,
 				 p_mad->mgmt_class);	/* remove from aging table */

--
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