From 92583135c8a6576176511c92154a8806873a0beb Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 18 Dec 2008 12:25:11 +0000 Subject: Replace __FUNCTION__ with __func__ for better portability (John Levon) --- types.c | 4 ++-- 1 file 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); } -- cgit