diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-14 16:15:05 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-14 16:15:05 +0300 |
commit | 1ff10e3d68417ebdeac329c79299187710afb697 (patch) | |
tree | 0a3ed14666dc49d043465f9608ad6748173ed23a /rpmio | |
parent | 63432905a413d33085061674e00d6c23c60056e4 (diff) | |
download | rpm-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.c | 7 | ||||
-rw-r--r-- | rpmio/rpmio_internal.h | 9 |
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 |