From 1ff10e3d68417ebdeac329c79299187710afb697 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 14 Oct 2009 16:15:05 +0300 Subject: [PATCH] Move debug goo defs to rpmio.c --- rpmio/rpmio.c | 7 +++++++ rpmio/rpmio_internal.h | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 224842b..860f154 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 acca88e..92720c9 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 -- 2.7.4