Skip to content

Commit

Permalink
Update irrsmo00.c
Browse files Browse the repository at this point in the history
Add more debug prints.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Feb 20, 2024
1 parent f1f34c9 commit 8185429
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyracf/common/irrsmo00.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ static PyObject *call_irrsmo00(PyObject *self, PyObject *args, PyObject *kwargs)
printf("SAF RC: %d\n", saf_rc);
printf("RACF RC: %d\n", racf_rc);
printf("RACF RSN: %d\n", racf_rsn);
printf("Address for Req Handle: %d\n",&req_handle);
printf(req_handle);
printf("Should've printed req_handle above!\n");
IRRSMO64(
work_area,
alet,
Expand All @@ -101,6 +103,14 @@ static PyObject *call_irrsmo00(PyObject *self, PyObject *args, PyObject *kwargs)
PyList_Append(full_result, Py_BuildValue("y#", result_buffer, result_buffer_size));
}
i++;
printf("after the call!")
printf("Request XML Length: %d\n", request_xml_length);
printf("SAF RC: %d\n", saf_rc);
printf("RACF RC: %d\n", racf_rc);
printf("RACF RSN: %d\n", racf_rsn);
printf("Address for Req Handle: %d\n",&req_handle);
printf(req_handle);
printf("Should've printed req_handle above!\n");
} while((saf_rc == 8) && (racf_rc == 4000) && (i < 100));

// https://docs.python.org/3/c-api/arg.html#c.Py_BuildValue
Expand Down

0 comments on commit 8185429

Please sign in to comment.