Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit b3c1b4a

Browse files
authored
Merge pull request #1165 from jsquyres/pr/v2.0.1/fix-bml-r2-to-use-func
bml_r2: use __func__ to identify function names
2 parents c6caf6b + 4921132 commit b3c1b4a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ompi/mca/bml/r2/bml_r2.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)