summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-14 16:15:05 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-14 16:15:05 +0300
commit1ff10e3d68417ebdeac329c79299187710afb697 (patch)
tree0a3ed14666dc49d043465f9608ad6748173ed23a /rpmio
parent63432905a413d33085061674e00d6c23c60056e4 (diff)
downloadrpm-1ff10e3d68417ebdeac329c79299187710afb697.tar.gz
rpm-1ff10e3d68417ebdeac329c79299187710afb697.tar.bz2
rpm-1ff10e3d68417ebdeac329c79299187710afb697.zip
Move debug goo defs to rpmio.c
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmio.c7
-rw-r--r--rpmio/rpmio_internal.h9
2 files changed, 7 insertions, 9 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 224842bcf..860f154e2 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -29,6 +29,13 @@ extern int h_errno;
#include "debug.h"
+#define DBG(_f, _m, _x) \
+ \
+ if ((_rpmio_debug | ((_f) ? ((FD_t)(_f))->flags : 0)) & (_m)) fprintf _x \
+
+#define DBGIO(_f, _x) DBG((_f), RPMIO_DEBUG_IO, _x)
+#define DBGREFS(_f, _x) DBG((_f), RPMIO_DEBUG_REFS, _x)
+
static FDIO_t fdGetIo(FD_t fd)
{
FDSANE(fd);
diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h
index acca88ed9..92720c9c9 100644
--- a/rpmio/rpmio_internal.h
+++ b/rpmio/rpmio_internal.h
@@ -57,15 +57,6 @@ struct _FD_s {
#define FDSANE(fd) assert(fd && fd->magic == FDMAGIC)
-extern int _rpmio_debug;
-
-#define DBG(_f, _m, _x) \
- \
- if ((_rpmio_debug | ((_f) ? ((FD_t)(_f))->flags : 0)) & (_m)) fprintf _x \
-
-#define DBGIO(_f, _x) DBG((_f), RPMIO_DEBUG_IO, _x)
-#define DBGREFS(_f, _x) DBG((_f), RPMIO_DEBUG_REFS, _x)
-
#ifdef __cplusplus
extern "C" {
#endif