Use C99 __func__ instead of gcc-specific __PRETTY_FUNCTION__

This commit is contained in:
Todd C. Miller
2020-02-27 14:10:53 -07:00
parent 5635c22f6b
commit de9a143a3e
3 changed files with 5 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ py_str_array_from_tuple(PyObject *py_tuple)
if (!PyTuple_Check(py_tuple)) {
PyErr_Format(PyExc_ValueError, "%s: value error, argument should be a tuple but it is '%s'",
__PRETTY_FUNCTION__, Py_TYPENAME(py_tuple));
__func__, Py_TYPENAME(py_tuple));
debug_return_ptr(NULL);
}