Skip to content

Commit 0013310

Browse files
[OpenMP] Update printf statement with missing argument. (llvm#153704)
1 parent 1b5ca05 commit 0013310

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openmp/libompd/gdb-plugin/ompdModule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,8 @@ static PyObject *call_ompd_get_enclosing_parallel_handle(PyObject *self,
941941

942942
if (retVal != ompd_rc_ok) {
943943
_printf("An error occurred when calling "
944-
"ompd_get_enclosing_parallel_handle! Error code: %d",
944+
"ompd_get_enclosing_parallel_handle!"
945+
"Error code: %d",
945946
retVal);
946947
return Py_BuildValue("l", retVal);
947948
}
@@ -965,7 +966,7 @@ static PyObject *call_ompd_get_task_parallel_handle(PyObject *self,
965966

966967
if (retVal != ompd_rc_ok) {
967968
_printf("An error occurred when calling ompd_get_task_parallel_handle! "
968-
"Error code: %d");
969+
"Error code: %d", retVal);
969970
return Py_BuildValue("l", retVal);
970971
}
971972
return PyCapsule_New(taskParallelHandle, "ParallelHandle",

0 commit comments

Comments
 (0)