summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-12-18 12:25:11 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-12-18 12:25:11 +0000
commit92583135c8a6576176511c92154a8806873a0beb (patch)
tree4deb01be77bd11cc196008e39da11fdda87ffbb7
parent7ffd1965695d15a3b3819ccd67bb20c0c0ef4e30 (diff)
downloadlibvirt-python-v6-92583135c8a6576176511c92154a8806873a0beb.tar.gz
libvirt-python-v6-92583135c8a6576176511c92154a8806873a0beb.tar.xz
libvirt-python-v6-92583135c8a6576176511c92154a8806873a0beb.zip
Replace __FUNCTION__ with __func__ for better portability (John Levon)
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index c773f30..7981f80 100644
--- a/types.c
+++ b/types.c
@@ -185,7 +185,7 @@ libvirt_virEventHandleCallbackWrap(virEventHandleCallback node)
if (node == NULL) {
Py_INCREF(Py_None);
- printf("%s: WARNING - Wrapping None\n", __FUNCTION__);
+ printf("%s: WARNING - Wrapping None\n", __func__);
return (Py_None);
}
ret =
@@ -200,7 +200,7 @@ libvirt_virEventTimeoutCallbackWrap(virEventTimeoutCallback node)
PyObject *ret;
if (node == NULL) {
- printf("%s: WARNING - Wrapping None\n", __FUNCTION__);
+ printf("%s: WARNING - Wrapping None\n", __func__);
Py_INCREF(Py_None);
return (Py_None);
}