[openib-general] [PATCHv2] OpenSM: Add MGID to 1B11 error message

Hal Rosenstock halr at voltaire.com
Tue Sep 6 07:43:52 PDT 2005


[This is version 2 of this patch with the minor change suggested by
Eitan incorporated.]

OpenSM: Add MGID to error message when MC group can't be created due to
only being supplied with join (rather than create) component mask

This appears to be the most common "failure" so it would be good to have
the MGID in the error message even though it is redundant when running
in verbose mode.

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

--- osm_sa_mcmember_record.c.1  2005-09-06 07:09:30.000000000 -0400
+++ osm_sa_mcmember_record.c    2005-09-06 10:37:06.000000000 -0400
@@ -1578,11 +1578,15 @@ osm_mcmr_rcv_join_mgrp(
                "method = %s,"
                "scope_state = 0x%x, "
                "component mask = 0x%016" PRIx64 ", "
-               "expected comp mask = 0x%016" PRIx64 ".\n",
+               "expected comp mask = 0x%016" PRIx64 ", "
+               "MGID: 0x%016" PRIx64 " : "
+               "0x%016" PRIx64 "\n",
                ib_get_sa_method_str(p_sa_mad->method),
                p_recvd_mcmember_rec->scope_state,
                cl_ntoh64(p_sa_mad->comp_mask),
-               cl_ntoh64(REQUIRED_MC_CREATE_COMP_MASK));
+               CL_NTOH64(REQUIRED_MC_CREATE_COMP_MASK),
+               cl_ntoh64( p_recvd_mcmember_rec->mgid.unicast.prefix ),
+               cl_ntoh64( p_recvd_mcmember_rec->mgid.unicast.interface_id ) );
 
       CL_PLOCK_RELEASE( p_rcv->p_lock );
       sa_status   = IB_SA_MAD_STATUS_INSUF_COMPS;





More information about the general mailing list