Skip to content

Commit 1d38430

Browse files
committed
opal: replace opal_convert_jobid_to_string with opal_snprintf_jobid
1 parent e5cf2db commit 1d38430

File tree

12 files changed

+67
-55
lines changed

12 files changed

+67
-55
lines changed

opal/mca/pmix/external/pmix_ext_server_north.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -415,7 +415,7 @@ static void opal_lkupcbfunc(int status,
415415
n=0;
416416
OPAL_LIST_FOREACH(p, data, opal_pmix_pdata_t) {
417417
/* convert the jobid */
418-
(void)snprintf(d[n].proc.nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(p->proc.jobid));
418+
(void)opal_snprintf_jobid(d[n].proc.nspace, PMIX_MAX_NSLEN, p->proc.jobid);
419419
d[n].proc.rank = p->proc.vpid;
420420
(void)strncpy(d[n].key, p->value.key, PMIX_MAX_KEYLEN);
421421
pmix1_value_load(&d[n].value, &p->value);
@@ -534,7 +534,7 @@ static void opal_spncbfunc(int status, opal_jobid_t jobid, void *cbdata)
534534
if (NULL != opalcaddy->spwncbfunc) {
535535
rc = pmix1_convert_opalrc(status);
536536
/* convert the jobid */
537-
(void)snprintf(nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(jobid));
537+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
538538
opalcaddy->spwncbfunc(rc, nspace, opalcaddy->cbdata);
539539
}
540540
OBJ_RELEASE(opalcaddy);

opal/mca/pmix/external/pmix_ext_server_south.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
77
* Copyright (c) 2014 Mellanox Technologies, Inc.
@@ -209,7 +209,7 @@ int pmix1_server_register_nspace(opal_jobid_t jobid,
209209
opal_pmix1_jobid_trkr_t *job;
210210

211211
/* convert the jobid */
212-
(void)snprintf(nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(jobid));
212+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
213213

214214
/* store this job in our list of known nspaces */
215215
job = OBJ_NEW(opal_pmix1_jobid_trkr_t);
@@ -295,7 +295,7 @@ int pmix1_server_register_client(const opal_process_name_t *proc,
295295
op->cbdata = cbdata;
296296

297297
/* convert the jobid */
298-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
298+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
299299
op->p.rank = proc->vpid;
300300

301301
rc = PMIx_server_register_client(&op->p, uid, gid, server_object,
@@ -330,7 +330,7 @@ int pmix1_server_setup_fork(const opal_process_name_t *proc, char ***env)
330330
pmix_proc_t p;
331331

332332
/* convert the jobid */
333-
(void)strncpy(p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
333+
(void)opal_snprintf_jobid(p.nspace, PMIX_MAX_NSLEN, proc->jobid);
334334
p.rank = proc->vpid;
335335

336336
rc = PMIx_server_setup_fork(&p, env);
@@ -364,7 +364,7 @@ int pmix1_server_dmodex(const opal_process_name_t *proc,
364364
op->cbdata = cbdata;
365365

366366
/* convert the jobid */
367-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
367+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
368368
op->p.rank = proc->vpid;
369369

370370
/* find the internally-cached data for this proc */
@@ -395,7 +395,7 @@ int pmix1_server_notify_error(int status,
395395
PMIX_PROC_CREATE(ps, psz);
396396
n = 0;
397397
OPAL_LIST_FOREACH(nm, procs, opal_namelist_t) {
398-
(void)snprintf(ps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
398+
(void)opal_snprintf_jobid(ps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
399399
ps[n].rank = (int)nm->name.vpid;
400400
++n;
401401
}
@@ -408,7 +408,7 @@ int pmix1_server_notify_error(int status,
408408
PMIX_PROC_CREATE(eps, esz);
409409
n = 0;
410410
OPAL_LIST_FOREACH(nm, error_procs, opal_namelist_t) {
411-
(void)snprintf(eps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
411+
(void)opal_snprintf_jobid(eps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
412412
eps[n].rank = (int)nm->name.vpid;
413413
++n;
414414
}

opal/mca/pmix/pmix112/pmix1_server_north.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -415,7 +415,7 @@ static void opal_lkupcbfunc(int status,
415415
n=0;
416416
OPAL_LIST_FOREACH(p, data, opal_pmix_pdata_t) {
417417
/* convert the jobid */
418-
(void)snprintf(d[n].proc.nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(p->proc.jobid));
418+
(void)opal_snprintf_jobid(d[n].proc.nspace, PMIX_MAX_NSLEN, p->proc.jobid);
419419
d[n].proc.rank = p->proc.vpid;
420420
(void)strncpy(d[n].key, p->value.key, PMIX_MAX_KEYLEN);
421421
pmix1_value_load(&d[n].value, &p->value);
@@ -534,7 +534,7 @@ static void opal_spncbfunc(int status, opal_jobid_t jobid, void *cbdata)
534534
if (NULL != opalcaddy->spwncbfunc) {
535535
rc = pmix1_convert_opalrc(status);
536536
/* convert the jobid */
537-
(void)snprintf(nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(jobid));
537+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
538538
opalcaddy->spwncbfunc(rc, nspace, opalcaddy->cbdata);
539539
}
540540
OBJ_RELEASE(opalcaddy);

opal/mca/pmix/pmix112/pmix1_server_south.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -197,7 +197,7 @@ int pmix1_server_register_nspace(opal_jobid_t jobid,
197197
opal_pmix1_jobid_trkr_t *job;
198198

199199
/* convert the jobid */
200-
(void)snprintf(nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(jobid));
200+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
201201

202202
/* store this job in our list of known nspaces */
203203
job = OBJ_NEW(opal_pmix1_jobid_trkr_t);
@@ -283,7 +283,7 @@ int pmix1_server_register_client(const opal_process_name_t *proc,
283283
op->cbdata = cbdata;
284284

285285
/* convert the jobid */
286-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
286+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
287287
op->p.rank = proc->vpid;
288288

289289
rc = PMIx_server_register_client(&op->p, uid, gid, server_object,
@@ -318,7 +318,7 @@ int pmix1_server_setup_fork(const opal_process_name_t *proc, char ***env)
318318
pmix_proc_t p;
319319

320320
/* convert the jobid */
321-
(void)strncpy(p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
321+
(void)opal_snprintf_jobid(p.nspace, PMIX_MAX_NSLEN, proc->jobid);
322322
p.rank = proc->vpid;
323323

324324
rc = PMIx_server_setup_fork(&p, env);
@@ -352,7 +352,7 @@ int pmix1_server_dmodex(const opal_process_name_t *proc,
352352
op->cbdata = cbdata;
353353

354354
/* convert the jobid */
355-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
355+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
356356
op->p.rank = proc->vpid;
357357

358358
/* find the internally-cached data for this proc */
@@ -383,7 +383,7 @@ int pmix1_server_notify_error(int status,
383383
PMIX_PROC_CREATE(ps, psz);
384384
n = 0;
385385
OPAL_LIST_FOREACH(nm, procs, opal_namelist_t) {
386-
(void)snprintf(ps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
386+
(void)opal_snprintf_jobid(ps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
387387
ps[n].rank = (int)nm->name.vpid;
388388
++n;
389389
}
@@ -396,7 +396,7 @@ int pmix1_server_notify_error(int status,
396396
PMIX_PROC_CREATE(eps, esz);
397397
n = 0;
398398
OPAL_LIST_FOREACH(nm, error_procs, opal_namelist_t) {
399-
(void)snprintf(eps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
399+
(void)opal_snprintf_jobid(eps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
400400
eps[n].rank = (int)nm->name.vpid;
401401
++n;
402402
}

opal/mca/pmix/pmix120/pmix120_server_north.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -415,7 +415,7 @@ static void opal_lkupcbfunc(int status,
415415
n=0;
416416
OPAL_LIST_FOREACH(p, data, opal_pmix_pdata_t) {
417417
/* convert the jobid */
418-
(void)snprintf(d[n].proc.nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(p->proc.jobid));
418+
(void)opal_snprintf_jobid(d[n].proc.nspace, PMIX_MAX_NSLEN, p->proc.jobid);
419419
d[n].proc.rank = p->proc.vpid;
420420
(void)strncpy(d[n].key, p->value.key, PMIX_MAX_KEYLEN);
421421
pmix120_value_load(&d[n].value, &p->value);
@@ -534,7 +534,7 @@ static void opal_spncbfunc(int status, opal_jobid_t jobid, void *cbdata)
534534
if (NULL != opalcaddy->spwncbfunc) {
535535
rc = pmix120_convert_opalrc(status);
536536
/* convert the jobid */
537-
(void)snprintf(nspace, PMIX_MAX_NSLEN, "%s", opal_convert_jobid_to_string(jobid));
537+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
538538
opalcaddy->spwncbfunc(rc, nspace, opalcaddy->cbdata);
539539
}
540540
OBJ_RELEASE(opalcaddy);

opal/mca/pmix/pmix120/pmix120_server_south.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
4+
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Mellanox Technologies, Inc.
77
* All rights reserved.
@@ -140,7 +140,7 @@ int pmix120_server_register_nspace(opal_jobid_t jobid,
140140
opal_pmix120_jobid_trkr_t *job;
141141

142142
/* convert the jobid */
143-
(void)snprintf(nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(jobid));
143+
(void)opal_snprintf_jobid(nspace, PMIX_MAX_NSLEN, jobid);
144144

145145
/* store this job in our list of known nspaces */
146146
job = OBJ_NEW(opal_pmix120_jobid_trkr_t);
@@ -226,7 +226,7 @@ int pmix120_server_register_client(const opal_process_name_t *proc,
226226
op->cbdata = cbdata;
227227

228228
/* convert the jobid */
229-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
229+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
230230
op->p.rank = proc->vpid;
231231

232232
rc = PMIx_server_register_client(&op->p, uid, gid, server_object,
@@ -261,7 +261,7 @@ int pmix120_server_setup_fork(const opal_process_name_t *proc, char ***env)
261261
pmix_proc_t p;
262262

263263
/* convert the jobid */
264-
(void)strncpy(p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
264+
(void)opal_snprintf_jobid(p.nspace, PMIX_MAX_NSLEN, proc->jobid);
265265
p.rank = proc->vpid;
266266

267267
rc = PMIx_server_setup_fork(&p, env);
@@ -295,7 +295,7 @@ int pmix120_server_dmodex(const opal_process_name_t *proc,
295295
op->cbdata = cbdata;
296296

297297
/* convert the jobid */
298-
(void)strncpy(op->p.nspace, opal_convert_jobid_to_string(proc->jobid), PMIX_MAX_NSLEN);
298+
(void)opal_snprintf_jobid(op->p.nspace, PMIX_MAX_NSLEN, proc->jobid);
299299
op->p.rank = proc->vpid;
300300

301301
/* find the internally-cached data for this proc */
@@ -326,7 +326,7 @@ int pmix120_server_notify_error(int status,
326326
PMIX_PROC_CREATE(ps, psz);
327327
n = 0;
328328
OPAL_LIST_FOREACH(nm, procs, opal_namelist_t) {
329-
(void)snprintf(ps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
329+
(void)opal_snprintf_jobid(ps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
330330
ps[n].rank = (int)nm->name.vpid;
331331
++n;
332332
}
@@ -339,7 +339,7 @@ int pmix120_server_notify_error(int status,
339339
PMIX_PROC_CREATE(eps, esz);
340340
n = 0;
341341
OPAL_LIST_FOREACH(nm, error_procs, opal_namelist_t) {
342-
(void)snprintf(eps[n].nspace, PMIX_MAX_NSLEN, opal_convert_jobid_to_string(nm->name.jobid));
342+
(void)opal_snprintf_jobid(eps[n].nspace, PMIX_MAX_NSLEN, nm->name.jobid);
343343
eps[n].rank = (int)nm->name.vpid;
344344
++n;
345345
}

opal/util/proc.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* reserved.
66
* Copyright (c) 2013 Inria. All rights reserved.
77
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
8-
* Copyright (c) 2014 Research Organization for Information Science
8+
* Copyright (c) 2014-2016 Research Organization for Information Science
99
* and Technology (RIST). All rights reserved.
1010
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1111
* reserved.
@@ -154,10 +154,9 @@ static int opal_convert_process_name_to_string_should_never_be_called(char** nam
154154
return OPAL_ERR_NOT_SUPPORTED;
155155
}
156156

157-
static char* opal_convert_jobid_to_string_should_never_be_called(opal_jobid_t jobid)
157+
static int opal_snprintf_jobid_should_never_be_called(char* name_string, size_t size, opal_jobid_t jobid)
158158
{
159-
char *str = strdup("My JOBID");
160-
return str;
159+
return strncpy(name_string, "My JOBID", size);
161160
}
162161

163162
static int opal_convert_string_to_jobid_should_never_be_called(opal_jobid_t *jobid, const char *jobid_string)
@@ -175,7 +174,7 @@ char* (*opal_vpid_print)(const opal_vpid_t) = opal_vpid_print_should_never_be_ca
175174
char* (*opal_jobid_print)(const opal_jobid_t) = opal_jobid_print_should_never_be_called;
176175
int (*opal_convert_string_to_process_name)(opal_process_name_t *name, const char* name_string) = opal_convert_string_to_process_name_should_never_be_called;
177176
int (*opal_convert_process_name_to_string)(char** name_string, const opal_process_name_t *name) = opal_convert_process_name_to_string_should_never_be_called;
178-
char* (*opal_convert_jobid_to_string)(opal_jobid_t jobid) = opal_convert_jobid_to_string_should_never_be_called;
177+
int (*opal_snprintf_jobid)(char* name_string, size_t size, opal_jobid_t jobid) = opal_snprintf_jobid_should_never_be_called;
179178
int (*opal_convert_string_to_jobid)(opal_jobid_t *jobid, const char *jobid_string) = opal_convert_string_to_jobid_should_never_be_called;
180179
struct opal_proc_t *(*opal_proc_for_name) (const opal_process_name_t name) = opal_proc_for_name_should_never_be_called;
181180

opal/util/proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* reserved.
55
* Copyright (c) 2013 Inria. All rights reserved.
66
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
7-
* Copyright (c) 2014 Research Organization for Information Science
7+
* Copyright (c) 2014-2016 Research Organization for Information Science
88
* and Technology (RIST). All rights reserved.
99
* $COPYRIGHT$
1010
*
@@ -133,7 +133,7 @@ OPAL_DECLSPEC extern int (*opal_convert_process_name_to_string)(char** name_stri
133133
const opal_process_name_t *name);
134134
OPAL_DECLSPEC extern char* (*opal_vpid_print)(const opal_vpid_t);
135135
OPAL_DECLSPEC extern char* (*opal_jobid_print)(const opal_jobid_t);
136-
OPAL_DECLSPEC extern char* (*opal_convert_jobid_to_string)(opal_jobid_t jobid);
136+
OPAL_DECLSPEC extern int (*opal_snprintf_jobid)(char* name_string, size_t size, opal_jobid_t jobid);
137137
OPAL_DECLSPEC extern int (*opal_convert_string_to_jobid)(opal_jobid_t *jobid, const char *jobid_string);
138138

139139
/**

orte/orted/pmix/pmix_server_dyn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2014 Mellanox Technologies, Inc.
1818
* All rights reserved.
19-
* Copyright (c) 2014 Research Organization for Information Science
19+
* Copyright (c) 2014-2016 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -413,7 +413,7 @@ static void _cnct(int sd, short args, void *cbdata)
413413
}
414414
/* ask the global data server for the data - if we get it,
415415
* then we can complete the request */
416-
key = opal_convert_jobid_to_string(nm->name.jobid);
416+
orte_util_convert_jobid_to_string(&key, nm->name.jobid);
417417
opal_argv_append_nosize(&keys, key);
418418
free(key);
419419
if (ORTE_SUCCESS != (rc = pmix_server_lookup_fn(&nm->name, keys, cd->info, _cnlk, cd))) {

orte/runtime/orte_init.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2007-2012 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2007-2008 Sun Microsystems, Inc. All rights reserved.
1616
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
17-
* Copyright (c) 2014-2015 Research Organization for Information Science
17+
* Copyright (c) 2014-2016 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
*
2020
* $COPYRIGHT$
@@ -97,14 +97,6 @@ static int _convert_process_name_to_string(char** name_string,
9797
return orte_util_convert_process_name_to_string(name_string, name);
9898
}
9999

100-
static char*
101-
_convert_jobid_to_string(opal_jobid_t jobid)
102-
{
103-
char *str;
104-
orte_util_convert_jobid_to_string(&str, jobid);
105-
return str;
106-
}
107-
108100
static int
109101
_convert_string_to_jobid(opal_jobid_t *jobid, const char *jobid_string)
110102
{
@@ -156,7 +148,7 @@ int orte_init(int* pargc, char*** pargv, orte_proc_type_t flags)
156148
opal_compare_proc = _process_name_compare;
157149
opal_convert_string_to_process_name = _convert_string_to_process_name;
158150
opal_convert_process_name_to_string = _convert_process_name_to_string;
159-
opal_convert_jobid_to_string = _convert_jobid_to_string;
151+
opal_snprintf_jobid = orte_util_snprintf_jobid;
160152
opal_convert_string_to_jobid = _convert_string_to_jobid;
161153

162154
/* initialize the opal layer */

0 commit comments

Comments
 (0)