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

Commit 4921132

Browse files
committed
bml_r2: use __func__ to identify function names
There were some old/stale function names in some debugging/verbose opal_output calls. Use __func__ instead, so that they won't become stale in the future. Thanks to Durga Choudhury for pointing out the issue. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit open-mpi/ompi@5275e5e)
1 parent 0acc223 commit 4921132

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ompi/mca/bml/r2/bml_r2.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* All rights reserved.
1313
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
1414
* reserved.
15-
* Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
15+
* Copyright (c) 2008-2016 Cisco Systems, Inc. All rights reserved.
1616
* Copyright (c) 2013 Intel, Inc. All rights reserved
1717
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
1818
* Copyright (c) 2014 Research Organization for Information Science
@@ -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

@@ -197,15 +197,16 @@ static int mca_bml_r2_endpoint_add_btl (struct ompi_proc_t *proc, mca_bml_base_e
197197
/* NTH: these flags should have been sanitized by the btl. Once that is verified these
198198
* checks can be safely removed. */
199199
if ((btl_flags & MCA_BTL_FLAGS_PUT) && (NULL == btl->btl_put)) {
200-
opal_output(0, "mca_bml_r2_add_procs: The PUT flag is specified for"
200+
opal_output(0, "%s: The PUT flag is specified for"
201201
" the %s BTL without any PUT function attached. Discard the flag !",
202+
__func__,
202203
btl->btl_component->btl_version.mca_component_name);
203204
btl_flags ^= MCA_BTL_FLAGS_PUT;
204205
}
205206
if ((btl_flags & MCA_BTL_FLAGS_GET) && (NULL == btl->btl_get)) {
206-
opal_output(0, "mca_bml_r2_add_procs: The GET flag is specified for"
207+
opal_output(0, "%s: The GET flag is specified for"
207208
" the %s BTL without any GET function attached. Discard the flag !",
208-
btl->btl_component->btl_version.mca_component_name);
209+
__func__, btl->btl_component->btl_version.mca_component_name);
209210
btl_flags ^= MCA_BTL_FLAGS_GET;
210211
}
211212

0 commit comments

Comments
 (0)