Skip to content

Commit 3e5156a

Browse files
authored
Merge pull request #5765 from jsquyres/pr/v3.1.x/fix-ompi-info-mca-var-settable-output
v3.1.x: mca_base_var: fix output bug about settable vars
2 parents 4957a66 + 7d4ae0d commit 3e5156a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opal/mca/base/mca_base_var.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
14-
* Copyright (c) 2012-2017 Los Alamos National Security, LLC. All rights
13+
* Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved
14+
* Copyright (c) 2012-2018 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2015 Research Organization for Information Science
@@ -2090,7 +2090,8 @@ int mca_base_var_dump(int vari, char ***out, mca_base_var_dump_type_t output_typ
20902090
asprintf(out[0] + line++, "%ssource:%s", tmp, source_string);
20912091

20922092
/* Output whether it's read only or writable */
2093-
asprintf(out[0] + line++, "%sstatus:%s", tmp, VAR_IS_DEFAULT_ONLY(var[0]) ? "read-only" : "writeable");
2093+
asprintf(out[0] + line++, "%sstatus:%s", tmp,
2094+
VAR_IS_SETTABLE(var[0]) ? "writeable" : "read-only");
20942095

20952096
/* Output the info level of this parametere */
20962097
asprintf(out[0] + line++, "%slevel:%d", tmp, var->mbv_info_lvl + 1);

0 commit comments

Comments
 (0)