[ofa-general] Re: [PATCHv3][TRIVIAL] opensm/osm_sa_mcmember_record.c: Some error message improvements

Sasha Khapyorsky sashak at voltaire.com
Sat Jun 14 23:37:27 PDT 2008


On 08:30 Fri 13 Jun     , Hal Rosenstock wrote:
> opensm/osm_sa_mcmember_record.c: Some error message improvements
> 
> Signed-off-by: Hal Rosenstock <hal at xsigo.com>
> 
> diff --git a/opensm/opensm/osm_sa_mcmember_record.c b/opensm/opensm/osm_sa_mcmember_record.c
> index de174c5..df4eca3 100644
> --- a/opensm/opensm/osm_sa_mcmember_record.c
> +++ b/opensm/opensm/osm_sa_mcmember_record.c
> @@ -1121,7 +1121,10 @@ __search_mgrp_by_mgid(IN cl_map_item_t * const p_map_item, IN void *context)
>  
>  	if (p_ctxt->p_mgrp) {
>  		OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1B30: "
> -			"Multiple MC groups for same MGID\n");
> +			"Multiple MC groups for MGID "
> +			"0x%016" PRIx64 " : 0x%016" PRIx64 "\n",
> +			cl_ntoh64(p_mgrp->mcmember_rec.mgid.unicast.prefix),
> +			cl_ntoh64(p_mgrp->mcmember_rec.mgid.unicast.interface_id));
>  		return;
>  	}
>  	p_ctxt->p_mgrp = p_mgrp;
> @@ -1278,8 +1281,11 @@ __osm_mcmr_rcv_leave_mgrp(IN osm_sa_t * sa,
>  		}
>  	} else {
>  		CL_PLOCK_RELEASE(sa->p_lock);
> -		OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
> -			"Failed since multicast group not present\n");
> +		OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1B31: "
> +			"Failed since multicast group 0x%16"

Why to change log level? It is not OpenSM error, but invalid request.

Please next time if you are changing log level state it in commit
comment message.

Sasha

> +			PRIx64 " : 0x%016" PRIx64 " not present\n",
> +			cl_ntoh64(p_recvd_mcmember_rec->mgid.unicast.prefix),
> +			cl_ntoh64(p_recvd_mcmember_rec->mgid.unicast.interface_id));
>  		osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_REQ_INVALID);
>  		goto Exit;
>  	}
> 
> 



More information about the general mailing list