|
9 | 9 | * University of Stuttgart. All rights reserved. |
10 | 10 | * Copyright (c) 2004-2005 The Regents of the University of California. |
11 | 11 | * All rights reserved. |
12 | | - * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. |
| 12 | + * Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved. |
13 | 13 | * $COPYRIGHT$ |
14 | 14 | * |
15 | 15 | * Additional copyrights may follow |
@@ -74,16 +74,11 @@ int MPI_Get_library_version(char *version, int *resultlen) |
74 | 74 | len_left = sizeof(tmp); |
75 | 75 | memset(tmp, 0, MPI_MAX_LIBRARY_VERSION_STRING); |
76 | 76 |
|
77 | | - snprintf(tmp, MPI_MAX_LIBRARY_VERSION_STRING, "Open MPI v%d.%d", |
78 | | - OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION); |
| 77 | + snprintf(tmp, MPI_MAX_LIBRARY_VERSION_STRING, "Open MPI v%d.%d.%d", |
| 78 | + OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION, OMPI_RELEASE_VERSION); |
79 | 79 | ptr += strlen(tmp); |
80 | 80 | len_left -= strlen(tmp); |
81 | 81 |
|
82 | | - if (OMPI_RELEASE_VERSION > 0) { |
83 | | - snprintf(ptr, len_left, ".%d", OMPI_RELEASE_VERSION); |
84 | | - ptr = tmp + strlen(tmp); |
85 | | - len_left = MPI_MAX_LIBRARY_VERSION_STRING - strlen(tmp); |
86 | | - } |
87 | 82 | if (NULL != OMPI_GREEK_VERSION && strlen(OMPI_GREEK_VERSION) > 0) { |
88 | 83 | snprintf(ptr, len_left, "%s", OMPI_GREEK_VERSION); |
89 | 84 | ptr = tmp + strlen(tmp); |
|
0 commit comments