Move debug goo defs to rpmio.c
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Oct 2009 13:15:05 +0000 (16:15 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Oct 2009 13:15:05 +0000 (16:15 +0300)
rpmio/rpmio.c
rpmio/rpmio_internal.h

index 224842b..860f154 100644 (file)
@@ -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);
index acca88e..92720c9 100644 (file)
@@ -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