From dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 4 Dec 2007 11:25:46 +0200 Subject: Eliminate debug junk from the API - add some helper macros to accomplish the same, easy to enable / disable as needed --- python/rpmfd-py.c | 6 +++--- python/rpmte-py.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'python') diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c index 7ba66b9f9..a69cba27d 100644 --- a/python/rpmfd-py.c +++ b/python/rpmfd-py.c @@ -73,10 +73,10 @@ static int closeCallback(FILE * f) else fdhead = node->next; node->note = _free (node->note); - node->fd = fdLink(node->fd, "closeCallback"); + node->fd = fdLink(node->fd, RPMDBG_M("closeCallback")); (void) Fclose (node->fd); while (node->fd) - node->fd = fdFree(node->fd, "closeCallback"); + node->fd = fdFree(node->fd, RPMDBG_M("closeCallback")); node = _free (node); } return 0; @@ -98,7 +98,7 @@ rpmfd_Fopen(PyObject * s, PyObject * args, PyObject * kwds) node = xmalloc (sizeof(FDlist)); node->fd = Fopen(path, mode); - node->fd = fdLink(node->fd, "doFopen"); + node->fd = fdLink(node->fd, RPMDBG_M("doFopen")); node->note = xstrdup (path); if (!node->fd) { diff --git a/python/rpmte-py.c b/python/rpmte-py.c index 833302f08..95131854a 100644 --- a/python/rpmte-py.c +++ b/python/rpmte-py.c @@ -210,7 +210,7 @@ rpmte_DS(rpmteObject * s, PyObject * args, PyObject * kwds) return Py_None; #endif } - return (PyObject *) rpmds_Wrap(rpmdsLink(ds, "rpmte_DS")); + return (PyObject *) rpmds_Wrap(rpmdsLink(ds, RPMDBG_M("rpmte_DS"))); } static PyObject * @@ -240,7 +240,7 @@ rpmte_FI(rpmteObject * s, PyObject * args, PyObject * kwds) return Py_None; #endif } - return (PyObject *) rpmfi_Wrap(rpmfiLink(fi, "rpmte_FI")); + return (PyObject *) rpmfi_Wrap(rpmfiLink(fi, RPMDBG_M("rpmte_FI"))); } /** \ingroup py_c -- cgit v1.2.3