diff --git a/openmp/libompd/gdb-plugin/ompdModule.c b/openmp/libompd/gdb-plugin/ompdModule.c index df602c54aba37..6edc1cdc9c60b 100644 --- a/openmp/libompd/gdb-plugin/ompdModule.c +++ b/openmp/libompd/gdb-plugin/ompdModule.c @@ -943,7 +943,8 @@ static PyObject *call_ompd_get_enclosing_parallel_handle(PyObject *self, if (retVal != ompd_rc_ok) { _printf("An error occurred when calling " - "ompd_get_enclosing_parallel_handle! Error code: %d", + "ompd_get_enclosing_parallel_handle!" + "Error code: %d", retVal); return Py_BuildValue("l", retVal); } @@ -967,7 +968,7 @@ static PyObject *call_ompd_get_task_parallel_handle(PyObject *self, if (retVal != ompd_rc_ok) { _printf("An error occurred when calling ompd_get_task_parallel_handle! " - "Error code: %d"); + "Error code: %d", retVal); return Py_BuildValue("l", retVal); } return PyCapsule_New(taskParallelHandle, "ParallelHandle",