@@ -150,7 +150,7 @@ static mca_bml_base_endpoint_t *mca_bml_r2_allocate_endpoint (ompi_proc_t *proc)
150150    /* allocate bml specific proc data */ 
151151    bml_endpoint  =  OBJ_NEW (mca_bml_base_endpoint_t );
152152    if  (NULL  ==  bml_endpoint ) {
153-         opal_output (0 , "mca_bml_r2_add_procs : unable to allocate resources" );
153+         opal_output (0 , "%s : unable to allocate resources" ,  __func__ );
154154        return  NULL ;
155155    }
156156
@@ -204,15 +204,16 @@ static int mca_bml_r2_endpoint_add_btl (struct ompi_proc_t *proc, mca_bml_base_e
204204    /* NTH: these flags should have been sanitized by the btl. Once that is verified these 
205205     * checks can be safely removed. */ 
206206    if  ((btl_flags  &  MCA_BTL_FLAGS_PUT ) &&  (NULL  ==  btl -> btl_put )) {
207-         opal_output (0 , "mca_bml_r2_add_procs : The PUT flag is specified for" 
207+         opal_output (0 , "%s : The PUT flag is specified for" 
208208                    " the %s BTL without any PUT function attached. Discard the flag !" ,
209+                     __func__ ,
209210                    btl -> btl_component -> btl_version .mca_component_name );
210211        btl_flags  ^= MCA_BTL_FLAGS_PUT ;
211212    }
212213    if  ((btl_flags  &  MCA_BTL_FLAGS_GET ) &&  (NULL  ==  btl -> btl_get )) {
213-         opal_output (0 , "mca_bml_r2_add_procs : The GET flag is specified for" 
214+         opal_output (0 , "%s : The GET flag is specified for" 
214215                    " the %s BTL without any GET function attached. Discard the flag !" ,
215-                     btl -> btl_component -> btl_version .mca_component_name );
216+                     __func__ ,  btl -> btl_component -> btl_version .mca_component_name );
216217        btl_flags  ^= MCA_BTL_FLAGS_GET ;
217218    }
218219
0 commit comments