22 * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
33 * University Research and Technology
44 * Corporation. All rights reserved.
5+ * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
6+ * reserved.
57 * $COPYRIGHT$
68 *
79 * Additional copyrights may follow
@@ -40,9 +42,9 @@ int mca_base_select(const char *type_name, int output_id,
4042 * best_module = NULL ;
4143 * best_component = NULL ;
4244
43- opal_output_verbose ( 10 , output_id ,
44- "mca:base:select: Auto-selecting %s components" ,
45- type_name );
45+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
46+ "mca:base:select: Auto-selecting %s components" ,
47+ type_name );
4648
4749 /*
4850 * Traverse the list of available components.
@@ -55,37 +57,37 @@ int mca_base_select(const char *type_name, int output_id,
5557 * If there is a query function then use it.
5658 */
5759 if (NULL == component -> mca_query_component ) {
58- opal_output_verbose ( 5 , output_id ,
59- "mca:base:select:(%5s) Skipping component [%s]. It does not implement a query function" ,
60- type_name , component -> mca_component_name );
60+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
61+ "mca:base:select:(%5s) Skipping component [%s]. It does not implement a query function" ,
62+ type_name , component -> mca_component_name );
6163 continue ;
6264 }
6365
6466 /*
6567 * Query this component for the module and priority
6668 */
67- opal_output_verbose ( 5 , output_id ,
68- "mca:base:select:(%5s) Querying component [%s]" ,
69- type_name , component -> mca_component_name );
69+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
70+ "mca:base:select:(%5s) Querying component [%s]" ,
71+ type_name , component -> mca_component_name );
7072
7173 component -> mca_query_component (& module , & priority );
7274
7375 /*
7476 * If no module was returned, then skip component
7577 */
7678 if (NULL == module ) {
77- opal_output_verbose ( 5 , output_id ,
78- "mca:base:select:(%5s) Skipping component [%s]. Query failed to return a module" ,
79- type_name , component -> mca_component_name );
79+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
80+ "mca:base:select:(%5s) Skipping component [%s]. Query failed to return a module" ,
81+ type_name , component -> mca_component_name );
8082 continue ;
8183 }
8284
8385 /*
8486 * Determine if this is the best module we have seen by looking the priority
8587 */
86- opal_output_verbose ( 5 , output_id ,
87- "mca:base:select:(%5s) Query of component [%s] set priority to %d" ,
88- type_name , component -> mca_component_name , priority );
88+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
89+ "mca:base:select:(%5s) Query of component [%s] set priority to %d" ,
90+ type_name , component -> mca_component_name , priority );
8991 if (priority > best_priority ) {
9092 best_priority = priority ;
9193 * best_component = component ;
@@ -99,7 +101,7 @@ int mca_base_select(const char *type_name, int output_id,
99101 * Make sure we found something in the process.
100102 */
101103 if (NULL == * best_component ) {
102- opal_output_verbose ( 5 , output_id ,
104+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
103105 "mca:base:select:(%5s) No component selected!" ,
104106 type_name );
105107 /*
@@ -111,9 +113,9 @@ int mca_base_select(const char *type_name, int output_id,
111113 return OPAL_ERR_NOT_FOUND ;
112114 }
113115
114- opal_output_verbose ( 5 , output_id ,
115- "mca:base:select:(%5s) Selected component [%s]" ,
116- type_name , (* best_component )-> mca_component_name );
116+ opal_output_verbose ( MCA_BASE_VERBOSE_COMPONENT , output_id ,
117+ "mca:base:select:(%5s) Selected component [%s]" ,
118+ type_name , (* best_component )-> mca_component_name );
117119
118120 /*
119121 * Close the non-selected components
0 commit comments