diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-14 23:35:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 23:35:19 +0100 |
commit | 26c77800591a09718064d3bcea4b04c9a8544dd1 (patch) | |
tree | 0db7f1deffbea3d5e58ae125ee7f150a41bbc9a6 /psutil/_psutil_bsd.c | |
parent | 4d3f5ba337c5a91efa642699cc96331718889b4f (diff) | |
download | psutil-26c77800591a09718064d3bcea4b04c9a8544dd1.tar.gz |
1173 debug mode (#1176)
* implement PSUTIL_DEBUG from C module
* update doc
* add psutil_debug() utility function
* update doc
* enable PSUTIL_DEBUG for tests
* update appveyor.yml
* change psutil_debug() signature so that it can accept variable num of args
* provide DEBUG info in psutil_raise_for_pid()
* properly print debug message
* do not print too much
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r-- | psutil/_psutil_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c index f1adb1d3..9a2ed04b 100644 --- a/psutil/_psutil_bsd.c +++ b/psutil/_psutil_bsd.c @@ -475,7 +475,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) { errno = 0; freep = kinfo_getfile(pid, &cnt); if (freep == NULL) { - psutil_raise_for_pid(pid, "kinfo_getfile() failed"); + psutil_raise_for_pid(pid, "kinfo_getfile()"); goto error; } |